Neatly Prepared Mustache

    installed-dependencies

    0.1.0 • Public • Published

    installed-dependencies

    Get installed dependencies in your node_modules

    Install

    npm i installed-dependencies

    or

    npm i -g installed-dependencies

    Usage

    Module

    The callbacks ☎ way

    const installedDependencies = require("installed-dependencies");
     
    installedDependencies((dependencies, err) => {
      if (err) throw err;
      console.log(dependencies);
    });

    The promises 👏 way

    const installedDependencies = require("installed-dependencies");
     
    installedDependencies()
      .then(dependencies => console.log(dependencies))
      .catch(err => console.error(err));

    The async/await 💓 way

    const installedDependencies = require("installed-dependencies");
     
    (async () => {
      try {
        console.log(await installedDependencies());
      } catch (err) {
        console.error(err);
      }
    })();

    CLI

    npx installed-dependencies

    Install

    npm i installed-dependencies

    DownloadsWeekly Downloads

    1

    Version

    0.1.0

    License

    ISC

    Unpacked Size

    2.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • maddhruv