scripts
Resolve scripts based on supported extensions.
Install
$ npm install scripts
Usage
Resolve arequire
-able script to a path, including extension.var path = scripts.resolve('hello');
// => 'hello.js'
With CoffeeScript support:
require('coffee-script');
var path = scripts.resolve('hello');
// => 'hello.coffee'
Tests
$ npm install
$ npm test
Credits
- Jared HansonLicense
The MIT LicenseCopyright (c) 2013 Jared Hanson <http://jaredhanson.net/>