try-require-multiple

0.1.0 • Public • Published

try-require-multiple

tries to require a module, if it fails requires another instead.

Install

npm install --save try-require-multiple

Usage

requireAny = require("try-require-multiple")

pkg = requireAny("./pkg","pkg","pkg2")

License

Copyright (c) 2017 Paul Pflugradt Licensed under the MIT license.

/try-require-multiple/

    Package Sidebar

    Install

    npm i try-require-multiple

    Weekly Downloads

    3

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • paulpflug