Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@master-chief/map

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@master-chief/map

Fast file extension mapping with deep reference replacement.

  • 0.0.6
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

map

version language build prettier

Fast file extension mapping with deep reference replacement.

Contents

  • Features
  • Install
  • Example
  • Contributing

Features

  • Fast, recursive.
  • Replace file extensions.

Install

From NPM:

$ npm i -g @master-chief/map

Example

Assuming the contents of folder is as follows.

$ ls folder
a.js
b.js
c.js

You can use the map command to replace the .js extension and it's references within the files.

$ map folder js cjs

Now the extensions have been mapped to .cjs (easy right? 🙂).

$ ls folder
a.cjs
b.cjs
c.cjs

Contributing

Feel free to contribute and PR to your 💖's content.

FAQs

Package last updated on 27 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc