Socket
Socket
Sign inDemoInstall

npe

Package Overview
Dependencies
3
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    npe

Node Package Editor: a CLI for one-off inspection and editing of properties in package.json files.


Version published
Weekly downloads
2.1K
decreased by-12.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

npe Build Status

Node Package Editor: a CLI for one-off inspection and editing of properties in package.json files.

See also dot-json, a CLI for editing any JSON file.

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install npe --global

Usage

cd some/node/project

# Get stuff from package.json
npe name
npe scripts
npe scripts.test
npe repository.url
open $(npe repository.url)

# Set stuff in package.json
npe name foo
npe scripts.start "node index.js"

# Keywords string will be turned into an array
# If commas are present, they'll be the delimiter. Otherwise spaces.
npe keywords "foo, bar, cheese whiz"
npe keywords "foo bar baz"

# The current working directory's package.json is used by default,
# but you can point to another package file with a flag:
npe name --package=some/other/package.json
npe name other --package=some/other/package.json

Tests

npm install
npm test

Dependencies

  • merge: JavaScript/NodeJS Merge is a tool to merge multiple objects into one object, with the possibility of create a new object cloned. His operation is very similar to the jQuery.extend function but more flexible.
  • minimist: parse argument options
  • steeltoe: Don't shoot yourself in the foot while traversing JavaScript objects.

Dev Dependencies

  • mocha: simple, flexible, fun test framework
  • nixt: Simple and powerful testing for command-line apps
  • tmp: Temporary file and directory creator

License

MIT

Colophon

Keywords

FAQs

Last updated on 03 Feb 2017

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc