0.2.0 • Published 9 years ago
inspectweb v0.2.0
inspectweb
Allows you to inspect a JSON value on an UI in your browser. Uses jquery-jsonview.

Install
$ npm i --save inspectwebCommand-line Usage
$ npm install -g inspectweb
$ inspectweb package.json something.json
$ curl http://respondswithjson.com | inspectwebUsage
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