wpathtranslator
Version:
Simple class to map paths relative base path to make to make it appear that the root of files system is different. Use PathTranslator to translate paths to virtual path namespace and vise verse.
25 lines (15 loc) • 995 B
Markdown
# module::PathTranslator [](https://github.com/Wandalen/wPathTranslator/actions/workflows/StandardPublish.yml) [](https://github.com/emersion/stability-badges#experimental)
Simple class to map paths relative base path to make to make it appear that the root of files system is different. Use PathTranslator to translate paths to virtual path namespace and vise verse.
### Try out from the repository
```
git clone https://github.com/Wandalen/wPathTranslator
cd wPathTranslator
will .npm.install
node sample/trivial/Sample.s
```
Make sure you have utility `willbe` installed. To install willbe: `npm i -g willbe@stable`. Willbe is required to build of the module.
### To add to your project
```
npm add 'wpathtranslator@stable'
```
`Willbe` is not required to use the module in your project as submodule.