New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

njson

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

njson

a service to log from nodeJS to a json web tree-view

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

nJSON

nJSON is a service to log json data to a redis-instance and display&filter it via a json web tree-view.

https://njson.itsatony.com is a public (and free) nJSON server instance anybody can use to log JS variables/json data to and explore it.

any kind of contributions are super welcome!

the njson repository includes

  • a simple server you can run on your own machine. ( alternatively, using https://njson.itsatony.com is free )

    • (with a http GET) /?id={{id}} uses http://erffun.github.io/jsontree/ to show data stored in the given redis key (id)

    • (with a http POST or PUT) /?id={{id}} checks for JSON data format and writes that into the redis key id

    • all submitted data is auto-deleted after 24h

  • a simple nodejs client that can be used from any nodejs project to log variables to njson

    • it allows easily sending json to any njson server like this
	var nJSON = require('njson');
	var njson = nJSON.client();
	njson(variable, href, callback); 
	// href is optional and defaults to njson.itsatony.com .
	// callback is optional. you will receive the id to access your data.
	// check https://github.com/itsatony/nJSON/blob/master/client-example.js for details.
  • a jQuery dependent client-library that allows sending of variables to njson from any browser-js app
	<head>
		<script src="https://njson.itsatony.com/lib/nJSON-jquery.js" type="text/javascript"></script>
		<script type="text/javascript">
			njson(someVariable, someId);
			// someId is optional. if you want to supply it, it needs to be 45 characters in length
		</script>
	</head>

install

$ npm install njson

demos

server

$ node example-server

client

$ node example-client

FAQs

Package last updated on 15 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts