Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-dry

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-dry

JSON generator & parser with circular, date and regex support

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
133
decreased by-44.35%
Maintainers
1
Weekly downloads
 
Created
Source

JSON-dry

JSON-dry allows you to stringify objects containing circular references, dates and regexes.

Multiple references to the same object are also correctly converted.

JSON-dry is based on circular-json

Usage

var dry = require('json-dry'),
    obj,
    ref;

ref = {
	text: 'This object is referred to',
	number: 1,
	date: new Date(),
	regex: /test/i
};

obj = {
	alpha: 'test',
	extra: ref,
	again: ref,
	three: ref
};

dry.stringify(obj);

Keywords

FAQs

Package last updated on 03 Feb 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

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