Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

abt

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abt

A CLI tool to get easy info from your package.json.

  • 0.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

abt

A CLI tool to get easy info from your package.json.

npm i -g abt

Usage

abt takes only one argument, being the .dotNoted reference to the part of your package.json that you wish to fetch. When called with no arguments at all, abt will present you with your .scripts by default. When called with multiple arguments, abt will only use the first. abt also provides shortcuts. (See below.)

Examples

Given the command abt or abt .scripts, abt will give you your package.json's scripts value:

["<path/to/projectRoot>/package.json"].scripts == {
	"start": "node bin",
	"test": "jest"
}

Given the command abt .dependencies, abt will give you the dependencies value found in your package.json:

["<path/to/projectRoot>/package.json"].dependencies == {
   "ink": "^0.4.1",
   "ink-spaces": "^0.0.1",
   "ink-spinner": "^1.0.0",
   "node-jq": "^1.2.0",
   "yargs": "^11.0.0"
}

Given the command abt .version, abt will give you the version value found in your package.json:

["<path/to/projectRoot>/package.json"].version == "0.0.2"

Shortcuts

argsame as
.DD'.devDependencies'
.PD'.peerDependencies'
.D'.dependencies'
.V'.version'

Example: abt .DD -> abt .devDependencies

Notes

abt is not guaranteed to work on Node < 8.1

FAQs

Package last updated on 22 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc