jsonexport
Advanced tools
Comparing version 2.0.10 to 2.0.11
## Change log | ||
---------------------- | ||
- v2.0.11 - Tailored for browser by including distribution folder (ackerapple) | ||
- v2.0.10 - enclose strings containing quotes with more quotes (dozen1488) | ||
@@ -4,0 +5,0 @@ - v2.0.8 - cli improvements |
{ | ||
"name": "jsonexport", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "Makes easy to convert JSON to CSV", | ||
@@ -8,4 +8,8 @@ "main": "./lib", | ||
"test": "mocha tests/*.js tests/**/*.js", | ||
"lint": "./node_modules/.bin/jshint ./lib/index.js" | ||
"lint": "./node_modules/.bin/jshint ./lib/index.js", | ||
"build:dist": "babel lib --out-dir dist --presets=es2015" | ||
}, | ||
"pre-commit": [ | ||
"build:dist" | ||
], | ||
"bin": { | ||
@@ -43,8 +47,11 @@ "jsonexport": "bin/jsonexport.js" | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"benchmark": "^2.1.4", | ||
"chai": "^4.0.1", | ||
"jshint": "^2.9.4", | ||
"mocha": "^3.1.0" | ||
"mocha": "^3.1.0", | ||
"pre-commit": "^1.2.2" | ||
}, | ||
"runkitExampleFilename": "examples/simple.js" | ||
} |
@@ -17,3 +17,15 @@ # jsonexport | ||
<details> | ||
<summary><b>Table of Contents</b></summary> | ||
- [Usage](#usage) | ||
- [CLI](#cli) | ||
- [Browser](#browser) | ||
- [Stream](#stream) | ||
- [JSON Array Example](#json-array-example) | ||
- [Customization](#customization) | ||
</details> | ||
# Usage | ||
@@ -42,2 +54,17 @@ | ||
## Browser | ||
Use the code in the folder named **dist** to run jsonexport in the browser | ||
### Browser Import Examples | ||
Webpack | ||
```javascript | ||
var jsonexport = require("jsonexport/dist") | ||
``` | ||
Typescript | ||
```javascript | ||
import * as jsonexport from "jsonexport/dist" | ||
``` | ||
## Stream | ||
@@ -135,7 +162,7 @@ | ||
``` | ||
lastname,name,family.type,family.name,nickname,location | ||
Smith,Bob,Father,Peter,, | ||
David,James,Mother,Julie,, | ||
Miller,Robert,,,,1231,3214,4214 | ||
Martin,David,,,dmartin, | ||
name,lastname,family.name,family.type,family,location,nickname | ||
Bob,Smith,Peter,Father | ||
James,David,Julie,Mother | ||
Robert,Miller,,,,1231;3214;4214 | ||
David,Martin,,,,,dmartin | ||
``` | ||
@@ -142,0 +169,0 @@ |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
165400
30
4496
286
7