dotresolver
Installation
npm install dotresolver --save
Basic usage
var R = '.'; // displays the root path .console; // displays the path ./src/controllers/hello.jsconsole; // imports the module hello.jsvar hello = ;
Builder usage
var Resolver = ; // builds resolver with some aliasesvar R = Resolver ; // displays the path /home/steven/myapp/public/src/styles/base.cssconsole; // imports the module hello.jsvar hello = ;
API
Tests
npm test
Release History
- 0.2.8 Fix issue #3
- 0.2.7 Add helper to create URI resolver
- 0.2.6 Fix issue #2
- 0.2.5 Support object of aliases with setAlias()
- 0.2.3 Improve the path building
- 0.2.0 Remove real root path features
- 0.1.0 Initial release