Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
/ map Public archive

Fast file extension mapping with deep reference replacement.

Notifications You must be signed in to change notification settings

117/map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

map

version language build prettier

Fast file extension mapping with deep reference replacement.

Contents

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.

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

Contributing

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

About

Fast file extension mapping with deep reference replacement.

Resources

Stars

Watchers

Forks