jsonpoker
Awesome JSON investigation with Coffeescript
Last updated 6 years ago by davidbanham .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jsonpoker 
SYNC missed versions from official npm registry.

Installation:

npm install -g jsonpoker

Usage:

things.json:

{
  "people": [
    "Sam",
    "Dave",
    "Steve"
  ]
}

poker things.json

Welcome to poker. Your data is assigned to the variable j
coffee>```

You are now in a coffeescript REPL. Type something like:

```coffeescript
j.people.length

And you will get the answer:

3

You could also type something like:

lowered = person.toLowerCase() for person in j.people
fs.writeFileSync 'lowercased.json', JSON.stringify lowered

Get the idea? It's a full coffeescript environment, so you can do arbitrarily more complex things.

poker is based on nesh, so it has history support and all kinds of other great things.

Have fun!

Current Tags

  • 0.0.1                                ...           latest (6 years ago)

2 Versions

  • 0.0.1                                ...           6 years ago
  • 0.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |