JSPM

alias-module

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q30628F
  • License ISC

Alias your local node modules to be required like installed modules

Package Exports

  • alias-module

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 (alias-module) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Alias Module

Alias your project modules

Usage:

Project Directory Structure:

- lib/
  - helpers.js
  - utils.js
- app.js
- config.js
var alias = require('alias-module');

alias( 'utils', './lib/utils.js' );

Result:

- lib/
  - helpers.js
  - utils.js
- node_modules/
  - utils/
    - index.js -> lib/utils.js
- app.js
- config.js

app.js

var utils = require('utils');

Install:

npm install -S alias-module