csv-string
Advanced tools
Comparing version 3.1.8 to 3.2.0
@@ -1,1 +0,88 @@ | ||
define module 'csv-string'; | ||
declare module 'csv-string'; | ||
import { Transform } from "stream"; | ||
declare namespace CsvString { | ||
type rowElement = string | number | boolean; | ||
type row = rowElement[]; | ||
type separator = "," | ";" | "|" | "\t"; | ||
function parse(input: string, separator?: separator, quote?: string): row; | ||
function stringify(input: row, separator?: string): string; | ||
function detect(input: string): separator; | ||
function createStream(options?: { | ||
separator: separator; | ||
quote: string; | ||
}): Transform; | ||
type forEachCallback = (row: row, index: number) => undefined; | ||
function forEach( | ||
input: string, | ||
separator: string, | ||
quote: string, | ||
callback: forEachCallback | ||
): void; | ||
function forEach( | ||
input: string, | ||
separator: string, | ||
callback: forEachCallback | ||
): void; | ||
function forEach(input: string, callback: forEachCallback): void; | ||
type readCallback = (row: row) => undefined; | ||
function read(input: string, callback: readCallback): number; | ||
function read( | ||
input: string, | ||
separator: string, | ||
quote: string, | ||
callback: readCallback | ||
): number; | ||
function read( | ||
input: string, | ||
separator: string, | ||
callback: readCallback | ||
): number; | ||
type readAllCallback = readCallback; | ||
function readAll(input: string, callback: readCallback): number; | ||
function readAll( | ||
input: string, | ||
separator: string, | ||
quote: string, | ||
callback: readCallback | ||
): number; | ||
function readAll( | ||
input: string, | ||
separator: string, | ||
callback: readCallback | ||
): number; | ||
type readChunkCallback = readCallback; | ||
function readChunk(input: string, callback: readCallback): number; | ||
function readChunk( | ||
input: string, | ||
separator: string, | ||
quote: string, | ||
callback: readCallback | ||
): number; | ||
function readChunk( | ||
input: string, | ||
separator: string, | ||
callback: readCallback | ||
): number; | ||
} | ||
export = CsvString; |
119
package.json
{ | ||
"name": "csv-string", | ||
"version": "3.1.8", | ||
"author": "Nicolas Thouvenin <nthouvenin@gmail.com>", | ||
"contributors": [ | ||
{ | ||
"name": "Stéphane Gully", | ||
"url": "https://github.com/kerphi" | ||
}, | ||
{ | ||
"name": "J Baumbach", | ||
"url": "https://github.com/jbaumbach" | ||
}, | ||
{ | ||
"name": "Sam Hauglustaine", | ||
"url": "https://github.com/smhg" | ||
}, | ||
{ | ||
"name": "Rick Huizinga", | ||
"url": "https://github.com/rickhuizinga" | ||
}, | ||
{ | ||
"name": "François Parmentier", | ||
"url": "https://github.com/parmentf" | ||
} | ||
], | ||
"description": "PARSE and STRINGIFY for CSV strings. It's like JSON object but for CSV. It can also work row by row. And, if can parse strings, it can be use to parse files or streams too.", | ||
"keywords": [ | ||
"csv", | ||
"parser", | ||
"string", | ||
"generator" | ||
], | ||
"homepage": "http://github.com/touv/node-csv-string", | ||
"scripts": { | ||
"lint": "eslint lib/*.js", | ||
"test": "nyc mocha -R spec" | ||
}, | ||
"main": "./index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/touv/node-csv-string.git" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"eslint": "^6.7.2", | ||
"mocha": "^6.2.2", | ||
"nyc": "^14.1.1", | ||
"should": "^13.2.3" | ||
}, | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=0.10.0" | ||
} | ||
"name": "csv-string", | ||
"version": "3.2.0", | ||
"author": "Nicolas Thouvenin <nthouvenin@gmail.com>", | ||
"contributors": [ | ||
{ | ||
"name": "Mehul Mohan", | ||
"url": "https://github.com/mehulmpt" | ||
}, | ||
{ | ||
"name": "Hossam Magdy", | ||
"url": "https://github.com/hossam-magdy" | ||
}, | ||
{ | ||
"name": "Rich", | ||
"url": "https://github.com/rich-TIA" | ||
}, | ||
{ | ||
"name": "Stéphane Gully", | ||
"url": "https://github.com/kerphi" | ||
}, | ||
{ | ||
"name": "J Baumbach", | ||
"url": "https://github.com/jbaumbach" | ||
}, | ||
{ | ||
"name": "Sam Hauglustaine", | ||
"url": "https://github.com/smhg" | ||
}, | ||
{ | ||
"name": "Rick Huizinga", | ||
"url": "https://github.com/rickhuizinga" | ||
}, | ||
{ | ||
"name": "François Parmentier", | ||
"url": "https://github.com/parmentf" | ||
} | ||
], | ||
"description": "PARSE and STRINGIFY for CSV strings. It's like JSON object but for CSV. It can also work row by row. And, if can parse strings, it can be use to parse files or streams too.", | ||
"keywords": [ | ||
"csv", | ||
"parser", | ||
"string", | ||
"generator" | ||
], | ||
"homepage": "https://github.com/Inist-CNRS/node-csv-string", | ||
"scripts": { | ||
"lint": "eslint lib/*.js", | ||
"test": "nyc mocha -R spec" | ||
}, | ||
"main": "./index.js", | ||
"types": "./index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Inist-CNRS/node-csv-string.git" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"eslint": "^6.8.0", | ||
"mocha": "^7.1.1", | ||
"nyc": "^15.0.0", | ||
"should": "^13.2.3" | ||
}, | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=0.10.0" | ||
} | ||
} |
@@ -30,2 +30,6 @@ # Javascript CSV Strings | ||
- [Mehul Mohan](https://github.com/mehulmpt) | ||
- [Hossam Magdy](https://github.com/hossam-magdy) | ||
- [Rich](https://github.com/rich-TIA) | ||
- [Rick Huizinga](https://github.com/rickhuizinga) | ||
- [Nicolas Thouvenin](https://github.com/touv) | ||
@@ -32,0 +36,0 @@ - [Stéphane Gully](https://github/kerphi) |
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
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
77204
15
792
285