@master-chief/map

0.0.6 • Public • Published

map

version language build prettier

Fast file extension mapping with deep reference replacement.

Contents

Features

  • [x] Fast, recursive.
  • [x] 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @master-chief/map

Weekly Downloads

213

Version

0.0.6

License

ISC

Unpacked Size

3.81 kB

Total Files

6

Last publish

Collaborators

  • master-chief