1.1.0 • Published 9 years ago

package-field v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

package-field

experimental

Command-line to get a field from current dir's package.json. Defaults to name field.

e.g.

For the following package.json in a folder called foobar:

{
    "description": "this is foobar",
    "name": "foobar",
    ... etc
}
cd foobar
package-field description

## prints 'this is foobar' to stdout

Usage

NPM

package-field [field] [options]

e.g.

package-field description -s

You can use -s to silent errors and return an empty string.

License

MIT, see LICENSE.md for details.

1.1.0

9 years ago

1.0.1

10 years ago

1.0.0

10 years ago