Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

json-to-js

1.0.2 • Public • Published

json-to-js

Got JSON but want JS?

Installation:

npm i -g json-to-js

Options:

--help/-h       Display this message
--spaces=2      Provide the indentation in spaces

Usefulnesses

Ever copied JSON just to reindent and format it to JS? Add this command as an alias to your .bashrc/whatever you use for that stuff:

pbpaste | json-to-js | pbcopy

Keywords

none

install

npm i json-to-js

Downloadsweekly downloads

27

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar