Skip to content

Commit

Permalink
build project
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyang committed Jun 26, 2019
1 parent e5ce6cf commit a2cc388
Show file tree
Hide file tree
Showing 14 changed files with 69 additions and 20 deletions.
4 changes: 2 additions & 2 deletions browser/browser.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions browser/csvtojson.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/Converter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Transform, TransformOptions, Readable } from "stream";
import { CSVParseParam } from "./Parameters";
import { ParseRuntime } from "./ParseRuntime";
import CSVError from "./CSVError";
export declare class Converter extends Transform implements PromiseLike<Array<any>> {
export declare class Converter extends Transform implements PromiseLike<any[]> {
options: TransformOptions;
preRawData(onRawData: PreRawDataCallback): Converter;
preFileLine(onFileLine: PreFileLineCallback): Converter;
Expand Down
5 changes: 3 additions & 2 deletions v2/Converter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/Converter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion v2/Parameters.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,25 @@ export interface CSVParseParam {
*/
eol?: string;
/**
* Always interpret each line (as defined by eol) as a row. This will prevent eol characters from being used within a row (even inside a quoted field). This ensures that misplaced quotes only break on row, and not all ensuing rows.
* Always interpret each line (as defined by eol) as a row. This will prevent eol characters from being used within a row (even inside a quoted field). Default is false. Change to true if you are confident no inline line breaks (like line break in a cell which has multi line text)
*/
alwaysSplitAtEOL: boolean;
/**
* The format to be converted to. "json" (default) -- convert csv to json. "csv" -- convert csv to csv row array. "line" -- convert csv to csv line string
*/
output: "json" | "csv" | "line";
/**
* Convert string "null" to null object in JSON outputs. Default is false.
*/
nullObject: boolean;
/**
* Define the format required by downstream (this parameter does not work if objectMode is on). `line` -- json is emitted in a single line separated by a line breake like "json1\njson2" . `array` -- downstream requires array format like "[json1,json2]". Default is line.
*/
downstreamFormat: "line" | "array";
/**
* Define whether .then(callback) returns all JSON data in its callback. Default is true. Change to false to save memory if subscribing json lines.
*/
needEmitAll: boolean;
}
export declare type CellParser = (item: string, head: string, resultRow: any, row: string[], columnIndex: number) => any;
export interface ColumnParam {
Expand Down
5 changes: 4 additions & 1 deletion v2/Parameters.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/Parameters.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 18 additions & 4 deletions v2/Result.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a2cc388

Please sign in to comment.