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

json2csv

Package Overview
Dependencies
Maintainers
4
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json2csv - npm Package Compare versions

Comparing version 4.0.0-alpha.2 to 4.0.0

dist/json2csv.cjs.js

15

CHANGELOG.md

@@ -5,2 +5,17 @@ # Change Log

<a name="4.0.0"></a>
# [4.0.0](https://github.com/zemirco/json2csv/compare/v4.0.0-alpha.2...v4.0.0) (2018-02-27)
### Bug Fixes
* Replace webpack with rollup packaging ([#266](https://github.com/zemirco/json2csv/issues/266)) ([a9f8020](https://github.com/zemirco/json2csv/commit/a9f8020))
### Features
* Pass transform options through ([#262](https://github.com/zemirco/json2csv/issues/262)) ([650913f](https://github.com/zemirco/json2csv/commit/650913f))
<a name="4.0.0-alpha.2"></a>

@@ -7,0 +22,0 @@ # [4.0.0-alpha.2](https://github.com/zemirco/json2csv/compare/v4.0.0-alpha.1...v4.0.0-alpha.2) (2018-02-25)

4

lib/JSON2CSVTransform.js

@@ -8,4 +8,4 @@ 'use strict';

class JSON2CSVTransform extends Transform {
constructor(opts) {
super(opts);
constructor(opts, transformOpts) {
super(transformOpts);

@@ -12,0 +12,0 @@ // Inherit methods from JSON2CSVBase since extends doesn't

{
"name": "json2csv",
"preferGlobal": "true",
"version": "4.0.0-alpha.2",
"version": "4.0.0",
"description": "Convert JSON to CSV",

@@ -23,3 +23,5 @@ "keywords": [

},
"main": "./lib/json2csv.js",
"main": "dist/json2csv.cjs.js",
"module": "dist/json2csv.esm.js",
"browser": "dist/json2csv.umd.js",
"repository": {

@@ -30,3 +32,4 @@ "type": "git",

"scripts": {
"build": "webpack",
"build": "rollup -c",
"dev": "rollup -c -w",
"test": "node test | tap-spec",

@@ -50,2 +53,4 @@ "lint": "eslint bin lib test",

"devDependencies": {
"babel-core": "^6.26.0",
"babel-preset-es2015-rollup": "^3.0.0",
"coveralls": "^3.0.0",

@@ -57,7 +62,12 @@ "docpress": "^0.7.0",

"nyc": "^11.4.1",
"rollup": "^0.56.3",
"rollup-plugin-babel": "^3.0.3",
"rollup-plugin-commonjs": "^8.3.0",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-globals": "^1.1.0",
"rollup-plugin-node-resolve": "^3.0.3",
"standard-version": "^4.0.0",
"tap-spec": "^4.1.1",
"tape": "^4.8.0",
"webpack": "^1.13.1"
"tape": "^4.8.0"
}
}

@@ -215,6 +215,7 @@ # json2csv

const opts = { fields };
const transformOpts = { highWaterMark: 16384, encoding: 'utf-8' };
const input = fs.createReadStream(inputPath, { encoding: 'utf8' });
const output = fs.createWriteStream(outputPath, { encoding: 'utf8' });
const json2csv = new Json2csvTransform(opts);
const json2csv = new Json2csvTransform(opts, transformOpts);

@@ -221,0 +222,0 @@ const processor = input.pipe(json2csv).pipe(output);

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