scripts

Resolve scripts based on supported extensions.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
scripts
100.1.011 years ago11 years agoMinified + gzip package size for scripts in KB

Readme

scripts
Build Coverage Dependencies
Resolve scripts based on supported extensions.

Install

$ npm install scripts

Usage

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'

Tests

$ npm install
$ npm test

Credits

- Jared Hanson

License

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