path-to
Description
A simple abstraction to identify the path and request your files and folders in a Node.js project.
Installation
npm install path-to --save
Usage
Without path-to
module:
var dep1 = ;var dep2 = ;var dep3 = ;var dep4 = ;
With path-to
module:
var path = ; var dep1 = ;var dep2 = ;var dep3 = ;var dep4 = ;
If you want to use just the ../../../
abstraction, you could use the path-to
in that manner:
var path = 4 ; var dep1 = ;var dep2 = ;var dep4 = ;
Real Example
You could look at this folder to see a working example.
In app.js file, we loaded the path-to
module and used it in two different forms.
Tests
npm test
Contributing
- Take care to maintain the existing coding style.
- Add unit tests for any new or changed functionality.
- Lint and test your code.
Release History
- 0.1.0 Initial release