Path Route
This is my first npm package module. The main function is to give the power of easily accessing the folders and files of your project.
Portable for TypeScript
]
With npm do:
npm install @vorlefan/path
With yarn do:
yarn add @vorlefan/path
Documentation
You can access on the folder 'docs' of this repository
A better documentation will be made at the near future.
Highlight
- Create several custom routes to access different folders & files
- Without any dependency
- Manage your files with the power of CRUD methods.
- Easy to use
Example
Please, take a look at the 'example' folder of this repository
'use strict';
const { Routes, Route } = require('./src');
Routes.instance((instance) => {
instance.set('src', instance.resolve(__dirname, '..'));
instance.join('test', 'src');
instance.join('examples', 'src');
}, 'Basic');
console.log(Route.Basic.get('test'));
console.log(Route.Basic.get('examples').path);