Nascent Prototype Metaverse
    Have ideas to improve npm?Join in the discussion! »

    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

    27

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • avatar