New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsop

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsop

One-way data-binding for JSON files

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

jsop

One-way data binding for JSON files

jsop is a new kind of JSON file reader/writer for Node 0.12 and io.js powered by Object.observe.

Before

var fs = require('fs')

var config = JSON.parse(fs.readFileSync('config.json'))
config.foo = 'bar'
fs.writeFile('config.json', JSON.stringify(config), function(err) {
  if (err) throw err
})

After

var jsop = require('jsop')

var config = jsop('config.json')
config.foo = 'bar'

Changes are automatically written to file. If file doesn't exist, it will be created.

License

MIT - Typicode

* jsop is short for jsonOpen

Keywords

FAQs

Package last updated on 09 Apr 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc