Neverending Pile of Messages

    @debitoor/parse-dependencies

    1.0.1 • Public • Published

    parse-dependencies

    Fast and easy way to get dependencies for your code.

    npm version Build Status Dependency Status devDependency Status Coverage Status

    Install

    npm i -SE @debitoor/parse-dependencies
    

    Usage

    const parse = require('@debitoor/parse-dependencies');
    parse(__dirname + '/server.js', function (err, deps) {
      console.log(deps); // 'express', 'body-parser' ...
    });

    You can compare result with you production dependencies

    const parse = require('@debitoor/parse-dependencies');
    const packageDeps = require('./package').dependencies;
    
    parse(__dirname + '/server.js', function (err, deps) {
      const diff = deps.filter(function (item) {
        return !(item in packageDeps);
      });
      if (diff.length) {
        console.log('oops. You have missing depencies\n%s', diff.join());
      }
    });

    Install

    npm i @debitoor/parse-dependencies

    DownloadsWeekly Downloads

    48

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • talar.boyadjian
    • sumup-yonatankarp
    • dzmitry.h.sumup
    • mmahrous
    • jmrigali
    • maciej-kusnierz
    • mariusrosand
    • skryvytskyi_sumup
    • oalpatov
    • bgeraymovich
    • bifrost
    • debitoor-bot
    • mamant
    • hilleer
    • s0ph1e
    • sumup.vascofg
    • jonathanmh
    • igor_torba
    • plafytskyi
    • igor.g
    • ituraj
    • eugene-ltv-debitoor
    • lshilo
    • hamoudaarfaoui
    • ziegelke
    • soulmonk
    • ketevanl
    • andriyonyshchenko
    • belrestro
    • robinmetral
    • connor_baer
    • balexandre
    • belem-acosta
    • mickael-h
    • annewarnk1
    • felixjung
    • oarostovtseva
    • amelako
    • mcntsh
    • msafwat-sumup
    • ketansumup
    • zetxek
    • nikolajgu