Naughty Pterodactyl Maid
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

node-require-alias

1.0.1 • Public • Published

node-require-alias

add alias when require file

SUPPORT

node >= 6.0.0

USAGE

const path = require("path")
require('node-require-alias').setAlias({
    "@": path.join(__dirname, "this/is/a/path")
})
// or require('node-require-alias').setAlias("@", path.join(__dirname, "this/is/a/path"))

Keywords

install

npm i node-require-alias

Downloadsweekly downloads

17

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability