Giter Site home page Giter Site logo

tammeny / dep-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alessandrominoccheri/package-info

0.0 2.0 0.0 54 KB

Get the information of dependencies in a npm package.json.

License: MIT License

JavaScript 100.00%
package dependencies devdependencies package-info dependency-info

dep-cli's Introduction

dep-cli

Build Status

Get the information of dependencies in a npm package.json.

To create this repository I have forked this project and make some edit:

https://www.npmjs.org/package/package-info

The information that you can retrieve are:

  • package name
  • package version
  • package description
  • package license
  • package homepage
  • package author name

Used for node program

It will get only one package info.

$ npm install --save dep-cli
const info = require('dep-cli');

(async () => {
    console.log(await info('dep-cli'));
})();

Used for command line

It will get the dependency information in package.json under the current directory, or you can enter the absolute path of package.json.

$ npm install --global dep-cli
$ dep-cli --help

Usage
  $ dep-cli [package-path]

Example
  $ cd /Users/tangwenyong/Documents/yourProject
  $ dep-cli

  or
  $ dep-cli /Users/tangwenyong/Documents/yourProject/package.json

It will prints:

===== mocha =====
name : mocha
version : 5.2.0
description : simple, flexible, fun test framework
license : MIT
homepage : https://mochajs.org
author : TJ Holowaychuk
total dependencies: 1

License

The MIT License (MIT)

Copyright (c) 2014 唐文雍

dep-cli's People

Contributors

alessandrominoccheri avatar tammeny avatar eush77 avatar krzkaczor avatar gitter-badger avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.