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

csv-string

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-string - npm Package Compare versions

Comparing version 3.1.8 to 3.2.0

.nyc_output/0c9eaa13-1ece-4fc5-8063-55c166414969.json

89

index.d.ts

@@ -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

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