wpathtranslator

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.

Usage no npm install needed!

<script type="module">
  import wpathtranslator from 'https://cdn.skypack.dev/wpathtranslator';
</script>

README

module::PathTranslator status 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.