@types/d3-dsv
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -41,3 +41,8 @@ // Type definitions for d3-dsv 0.4 | ||
/** | ||
Parses the specified string, which is the contents of a CSV file, returning an array of arrays representing the parsed rows. The string is assumed to be RFC4180-compliant. Unlike the parse method, this method treats the header line as a standard row, and should be used whenever the CSV file does not contain a header. Each row is represented as an array rather than an object. Rows may have variable length. For example, consider the following CSV file: | ||
Parses the specified string, which is the contents of a CSV file, returning an array of arrays representing the parsed rows. | ||
The string is assumed to be RFC4180-compliant. | ||
Unlike the parse method, this method treats the header line as a standard row, and should be used whenever the CSV file does not contain a header. | ||
Each row is represented as an array rather than an object. | ||
Rows may have variable length. | ||
For example, consider the following CSV file: | ||
@@ -59,5 +64,9 @@ 1997,Ford,E350,2.34 | ||
/** | ||
Converts the specified array of rows into comma-separated values format, returning a string. This operation is the reverse of parse. Each row will be separated by a newline (\n), and each column within each row will be separated by a comma (,). Values that contain either commas, double-quotes (") or newlines will be escaped using double-quotes. | ||
Converts the specified array of rows into comma-separated values format, returning a string. | ||
This operation is the reverse of parse. | ||
Each row will be separated by a newline (\n), and each column within each row will be separated by a comma (,). | ||
Values that contain either commas, double-quotes (") or newlines will be escaped using double-quotes. | ||
Each row should be an object, and all object properties will be converted into fields. For greater control over which properties are converted, convert the rows into arrays containing only the properties that should be converted and use formatRows. | ||
Each row should be an object, and all object properties will be converted into fields. | ||
For greater control over which properties are converted, convert the rows into arrays containing only the properties that should be converted and use formatRows. | ||
*/ | ||
@@ -67,5 +76,7 @@ format(rows: any[]): string; | ||
/** | ||
Converts the specified array of rows into comma-separated values format, returning a string. This operation is the reverse of parseRows. Each row will be separated by a newline (\n), and each column within each row will be separated by a comma (,). Values that contain either commas, double-quotes (") or newlines will be escaped using double-quotes. | ||
Converts the specified array of rows into comma-separated values format, returning a string. | ||
This operation is the reverse of parseRows. Each row will be separated by a newline (\n), and each column within each row will be separated by a comma (,). | ||
Values that contain either commas, double-quotes (") or newlines will be escaped using double-quotes. | ||
*/ | ||
formatRows(rows: any[]): string; | ||
} |
{ | ||
"name": "@types/d3-dsv", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "TypeScript definitions for d3-dsv", | ||
"license": "MIT", | ||
"author": "Jason Swearingen <https://jasonswearingen.github.io>", | ||
"contributors": [ | ||
{ | ||
"name": "Jason Swearingen", | ||
"url": "https://jasonswearingen.github.io" | ||
} | ||
], | ||
"main": "", | ||
@@ -15,4 +20,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "98165e80dd18af9f3429a0568f94d6bac4b88770e5ea7321fc2388d1728a2f94", | ||
"typesPublisherContentHash": "86b8d49c0fc91a9c951096be20a2a582d5326a2da48396e198cce8a908898386", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 10 Jan 2017 18:52:36 GMT | ||
* Last updated: Thu, 23 Feb 2017 15:22:19 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: d3_dsv |
@@ -6,4 +6,10 @@ { | ||
"data": { | ||
"authors": "Jason Swearingen <https://jasonswearingen.github.io>", | ||
"contributors": [ | ||
{ | ||
"name": "Jason Swearingen", | ||
"url": "https://jasonswearingen.github.io" | ||
} | ||
], | ||
"dependencies": {}, | ||
"pathMappings": {}, | ||
"libraryMajorVersion": 0, | ||
@@ -26,5 +32,5 @@ "libraryMinorVersion": 4, | ||
"hasPackageJson": false, | ||
"contentHash": "98165e80dd18af9f3429a0568f94d6bac4b88770e5ea7321fc2388d1728a2f94" | ||
"contentHash": "86b8d49c0fc91a9c951096be20a2a582d5326a2da48396e198cce8a908898386" | ||
}, | ||
"isLatest": false | ||
} |
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
5737
100