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

pa

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pa

Pa is a command-line tool for reading and writing properties of your package.json

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
increased by140%
Maintainers
1
Weekly downloads
 
Created
Source

pa

build status

pa is a command-line tool for reading and writing properties of your package.json

Getting Started

Install the module globally with: npm install pa -g

General Usage

Reading the version in your package.json

$ pa version

Setting the version in your package.json (to 0.1.0)

$ pa version 0.1.0

Reading the main in your package.json

$ pa main

Setting the main in your package.json (to 0.1.0)

$ pa main lib/index

Aliases

Predefined Aliases

  • v=version
  • k=keywords
  • h=homepage
  • n=name
  • a=author
  • desc=description
  • dep=dependencies
  • devdep=devDependencies

Using an Alias

e.g. reading the version with the alias
$ pa v

Listing all aliases

$ pa --alias

Reading an alias

$ pa --alias version

Setting an alias

$ pa --alias version v

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

  • Available Tasks:
    • jshint
    • nodeunit
    • default (jshint + nodeunit)

TODOs

  • create manpage
  • make aliases deleteable

Release History

  • 0.1.1

    • fix setting with alias
  • 0.1.0

    • Initial Commit

License

Copyright (c) 2013 Bastian Behrens Licensed under the MIT license.

Keywords

FAQs

Package last updated on 28 Mar 2013

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