All Projects → shinnn → sum-up

shinnn / sum-up

Licence: ISC License
Summarize package information

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to sum-up

fetch
wik is use to get information about anything on the shell using Wikipedia.
Stars: ✭ 335 (+2133.33%)
Mutual labels:  information
AIKIF
Artificial Intelligence Knowledge Information Framework
Stars: ✭ 54 (+260%)
Mutual labels:  information
upgreat
CLI for a painless way to upgrade your package.json dependencies!
Stars: ✭ 47 (+213.33%)
Mutual labels:  package-json
instagram-profilecrawl
📝 quickly crawl the information (e.g. followers, tags etc...) of an instagram profile.
Stars: ✭ 964 (+6326.67%)
Mutual labels:  information
twifo-cli
🐤 Get user information of a Twitter user.
Stars: ✭ 24 (+60%)
Mutual labels:  information
select-run
A CLI tool to interactively search & select one or many package.json npm scripts to run
Stars: ✭ 29 (+93.33%)
Mutual labels:  package-json
shoulders
💛 Quickly view a list of your dependencies' open issues.
Stars: ✭ 62 (+313.33%)
Mutual labels:  package-json
npmdc
ruby gem to check for missed NPM dependencies
Stars: ✭ 38 (+153.33%)
Mutual labels:  cli-utility
generate-package-json-webpack-plugin
Generates a package.json file containing the external modules used by your webpack bundle
Stars: ✭ 59 (+293.33%)
Mutual labels:  package-json
ServerStats
Here you can find info about ServerStats bot for Discord
Stars: ✭ 39 (+160%)
Mutual labels:  information
autoindex
PHP - Automatically add an "index.php" in all directories recursively
Stars: ✭ 25 (+66.67%)
Mutual labels:  cli-utility
e-books
IT technical related e-books and PPT information, continuous updating. For those in need, Keep real, peace and love.
Stars: ✭ 470 (+3033.33%)
Mutual labels:  information
www.gafam.info
Sources of the gafam.info web page
Stars: ✭ 14 (-6.67%)
Mutual labels:  information
wiki
XS-Leaks Wiki
Stars: ✭ 115 (+666.67%)
Mutual labels:  information
fillin
fill-in your command and execute
Stars: ✭ 140 (+833.33%)
Mutual labels:  cli-utility
npmtooling
This is the repository for my course, Tooling with NPM Scripts on LinkedIn Learning and Lynda.com.
Stars: ✭ 13 (-13.33%)
Mutual labels:  package-json
cordova-set-version
CLI and JavaScript API for setting the version in Apache Cordova config.xml
Stars: ✭ 19 (+26.67%)
Mutual labels:  cli-utility
mingine
A module to get the minimum usable engine(s)
Stars: ✭ 17 (+13.33%)
Mutual labels:  package-json
executor
A powerful "short-cutter" to your console to you and your team!
Stars: ✭ 21 (+40%)
Mutual labels:  package-json
get-bin-path
Get the current package's binary path
Stars: ✭ 25 (+66.67%)
Mutual labels:  package-json

sum-up

npm version Build Status Coverage Status

Summarize package information

const sumUp = require('sum-up');
console.log(sumUp(require('./package.json')));

Screenshot

It helps your CLI tool to display information with --help flag.

Installation

Use npm.

npm install sum-up

API

const sumUp = require('sum-up');

sumUp(pkgData [, option])

pkgData: Object
option: Object
Return: string

It joins the name, version, homepage and description properties (all is optional) of the first argument into a string colorized with ANSI escape code.

option.color

Type: boolean
Default: true if the environment supports colors, otherwise false

false omits all ANSI escape code from the string.

const data = {
  name: 'cli-name',
  version: '0.6.11',
  description: 'My CLI tool.'
}

sumUp(data); //=> '\u001b[36mcli-name\u001b[39m \u001b[90mv0.6.11\u001b[39m\nMy CLI tool.'
sumUp(data, {color: false}); //=> 'cli-name v0.6.11\nMy CLI tool.'

License

ISC License © 2017 Shinnosuke Watanabe

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].