nom-de-plume

2.0.0 • Public • Published

Nom De Plume

Build Status npm version

Provide the ability to alias package names in order to substitute one dependency for another.

Install

npm install nom-de-plume --save

Usage

In your package.json file

{
  "alias": {
    "underscore": "lodash",
    "react": "preact-compat",
    "react-dom": "preact-compat"
  }
}

Or in an .aliasrc file

{
  "underscore": "lodash",
  "react": "preact-compat",
  "react-dom": "preact-compat"
}
require('nom-de-plume');
const react = require('react'); //Preact instead
const _ = require('underscore'); // lodash
const ndp = require('nom-de-plume');
const react = require('react'); //Preact instead
const _ = require('underscore'); // lodash
ndp.clear(); // will remove the aliased lookups
const underscore = require('underscore'); //actually underscore

Readme

Keywords

none

Package Sidebar

Install

npm i nom-de-plume

Weekly Downloads

0

Version

2.0.0

License

Unlicense

Unpacked Size

5.13 kB

Total Files

11

Last publish

Collaborators

  • kev_nz