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

jsonext

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonext - npm Package Compare versions

Comparing version 0.0.9-beta to 0.0.10-beta

dist/jsonext.js

9

package.json
{
"name": "jsonext",
"version": "0.0.9-beta",
"version": "0.0.10-beta",
"description": "An extension of JSON that supports the Next gen features",
"main": "lib/",
"files": [
"lib/"
"lib/",
"dist/"
],
"scripts": {
"prepublish": "npm run build",
"build": "node build.js && babel src -d lib",
"build": "node build.js && babel src -d lib && browserify src/index.js -o dist/jsonext.js -s JSONext -t [ babelify --presets [ es2015 ] ]",
"lint": "eslint build.js src/ --fix",

@@ -39,2 +40,4 @@ "test": "cross-env NODE_ENV=test npm run build && nyc --reporter=html --reporter=text mocha"

"babel-register": "^6.18.0",
"babelify": "^7.3.0",
"browserify": "^13.1.1",
"cross-env": "^3.1.3",

@@ -41,0 +44,0 @@ "eslint": "^3.12.2",

# JSONext
[![Build Status](https://travis-ci.org/jordanbtucker/jsonext.svg?branch=master)](https://travis-ci.org/jordanbtucker/jsonext)
An *ext*ention of JSON that supports *Next* gen features.
## Usage
### Node
```bash
npm install --save jsonext
```
```js
const JSONext = require('jsonext')
```
### Browser
```html
<script src="https://unpkg.com/jsonext/dist/jsonext.js"></script>
```
## API
The JSONext API is compatible with the [JSON API].
### `JSONext.parse(text [, reviver])`
Parses JSONext text into an ECMAScript value.
### `JSONext.stringify(value [, replacer [, space]])`
Returns a string in JSONext format representing an ECMAScript value.
## Current features

@@ -62,1 +94,3 @@

```
[JSON API]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/JSON#Methods
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