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

datingjson

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datingjson

Convert objects with string-representation of dates to dates object

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

datingjson

Convert in-object string representation of dates into date objects

Installation

The easiest installation is through NPM:

npm install datingjson

Or clone the repo https://github.com/auridevil/datingjson and include the ./DatingJson script.

API

Initialize:

var DatingJson = require('datingjson');
var converter = new DatingJson();

Initialize with nesting level (default is 10):

var converter = new DatingJson(5);

Convert

var converted = converter.convert(stringedObject);

Nesting level is necessary to avoid infinite stacktrace with circular objects. All objects over the nesting level, are returned asis and not converted.

Contributions

If you find bugs or want to change functionality, feel free to fork and pull request.

Notes

The library use the es6 language, please make sure your node version supports it (we currently used 5.7)

Cheers from digitalx.

Keywords

FAQs

Package last updated on 09 Mar 2016

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