Socket
Socket
Sign inDemoInstall

json-dry

Package Overview
Dependencies
0
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-dry


Version published
Maintainers
1
Created

Changelog

Source

0.1.5 (2014-02-17)

  • Rewrite the retrieveFromPath function to be more readable and error-safe

Readme

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

Last updated on 17 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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc