Socket
Socket
Sign inDemoInstall

csv-builder

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-builder - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

test/CsvBuilder.test.js

12

lib/CsvBuilder.js

@@ -145,3 +145,3 @@ const { Readable, Transform } = require('stream')

return arr.map(col => {
col = col.toString()
col = this._stringifyCol(col)
if (this.format.quoted && hasQuotes(col)) {

@@ -156,4 +156,14 @@ col = col.replace(QUOTE_RE, '""')

}
_stringifyCol (col) {
if (col === void 0 || col === null) {
return ''
}
if (col.toString) {
return col.toString()
}
return ''
}
}
module.exports = CsvBuilder

6

package.json
{
"name": "csv-builder",
"author": "Nick Pisacane <pisacanen@gmail.com>",
"version": "1.0.0",
"version": "1.0.1",
"description": "Easily encode complex JSON objects to CSV with CsvBuilder's schema-like API",

@@ -30,4 +30,4 @@ "license": "MIT",

"chai": "^3.5.0",
"mocha": "^3.3.0",
"standard": "^10.0.2",
"mocha": "^3.5.3",
"standard": "^10.0.3",
"watch-run": "^1.2.5"

@@ -34,0 +34,0 @@ },

@@ -7,7 +7,7 @@ # Csvbuilder

# Table Of Contents
* [Usage](#Usage)
* [New Features](#New-Features)
* [Installation](#Installation)
* [API](#API)
* [Migration To 1.0.0](#Migration-to-1.0.0)
* [Usage](#usage)
* [New Features](#new-features)
* [Installation](#installation)
* [API](#api)
* [Migration To 1.0.0](#migration-to-100)

@@ -14,0 +14,0 @@ # Usage

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