0.2.0 • Published 8 years ago

inspectweb v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

inspectweb

Allows you to inspect a JSON value on an UI in your browser. Uses jquery-jsonview.

demo

Install

$ npm i --save inspectweb

Command-line Usage

$ npm install -g inspectweb
$ inspectweb package.json something.json
$ curl http://respondswithjson.com | inspectweb

Usage

var inspectweb = require('inspectweb');
inspectweb({
  lots: {
    of: [
      {
        interesting: 'stuff',
      },
    ],
  },
}, {
  open: true,
});

Implementation

When first called, inspectweb will:

  • Spawn an express server
  • Hash the object provided and store it in a shared object

(This will leak memory, but you probably don't care)

On subsequent calls, it'll hash the object, check if it exists in memory and store it.

If you tell inspectweb to open a browser, it'll open pages relative to the objects you want to inspect.

License

This code is published under the MIT license.

Donations

Would you like to buy me a beer? Send bitcoin to 3JjxJydvoJjTrhLL86LGMc8cNB16pTAF3y