scripts

Resolve scripts based on supported extensions.

scripts

Resolve scripts based on supported extensions.

$ npm install scripts

Resolve a require-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' 
$ npm install
$ npm test

The MIT License

Copyright (c) 2013 Jared Hanson <http://jaredhanson.net/>