@themost/json
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@themost/json

JSON parser extensions for formatting and parsing date values

Usage

npm i @themost/json

Extend JSON.stringify and JSON.parse to use and parse date values with timezone by importing @themost/json/register module:

import {@themost/json/register}

The default result of the native JSON.stringify() function:

{
    "message": "Hello World",
    "createdAt": "2022-12-13T09:27:13.531Z"
}

will be replaced by the following:

{
    "message": "Hello World",
    "createdAt": "2022-12-13T10:27:13.531+01:00"
}

Readme

Keywords

Package Sidebar

Install

npm i @themost/json

Weekly Downloads

42

Version

1.0.1

License

BSD-3-Clause

Unpacked Size

31.7 kB

Total Files

18

Last publish

Collaborators

  • themost