Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zeke/npe
Node Package Editor: a CLI for one-off inspection and editing of properties in package.json files.
https://github.com/zeke/npe
Last synced: 8 days ago
JSON representation
Node Package Editor: a CLI for one-off inspection and editing of properties in package.json files.
- Host: GitHub
- URL: https://github.com/zeke/npe
- Owner: zeke
- Created: 2014-06-08T18:45:46.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2022-05-25T16:48:08.000Z (over 2 years ago)
- Last Synced: 2024-10-21T17:25:50.127Z (18 days ago)
- Language: JavaScript
- Homepage:
- Size: 128 KB
- Stars: 92
- Watchers: 7
- Forks: 11
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-npm - npe - CLI for inspecting and editing properties in package.json. (Packages / Other)
- awesome-npm - npe - CLI for inspecting and editing properties in package.json. (Packages / Other)
README
# npe [![Build Status](https://travis-ci.org/zeke/npe.png?branch=master)](https://travis-ci.org/zeke/npe)
Node Package Editor: a CLI for one-off inspection and editing of properties in package.json files.
See also [dot-json](https://github.com/maikelvl/dot-json), a CLI for editing
any JSON file.## Installation
```sh
npm install npe --global
```## Usage
```sh
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
```## License
MIT