JSPM

scripts

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3716
  • Score
    100M100P100Q120961F

Resolve scripts based on supported extensions.

Package Exports

  • scripts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (scripts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

License

The MIT License

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