Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yamadapc/node-inspectweb
Allows you to inspect a JSON value on your browser on Node.js
https://github.com/yamadapc/node-inspectweb
Last synced: 15 days ago
JSON representation
Allows you to inspect a JSON value on your browser on Node.js
- Host: GitHub
- URL: https://github.com/yamadapc/node-inspectweb
- Owner: yamadapc
- License: mit
- Created: 2016-01-09T20:03:46.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-31T12:26:47.000Z (about 8 years ago)
- Last Synced: 2024-12-24T11:58:00.827Z (17 days ago)
- Language: JavaScript
- Size: 46.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
inspectweb
==========
Allows you to inspect a JSON value on an UI in your browser. Uses
[jquery-jsonview](https://github.com/yesmeck/jquery-jsonview).![demo](/node-inspectweb-demo.png)
## Install
```
$ npm i --save inspectweb
```## Command-line Usage
```
$ npm install -g inspectweb
$ inspectweb package.json something.json
$ curl http://respondswithjson.com | inspectweb
```## Usage
```javascript
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