Comparing version 0.0.9-beta to 0.0.10-beta
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89179
9
2584
96
16
2