Comparing version
{ | ||
"name": "js2excel", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "pomysky@gmail.com", | ||
@@ -34,9 +34,10 @@ "description": "A simple module for excel and json converts each other", | ||
"dependencies": { | ||
"file-saver": "^1.3.3", | ||
"xlsx": "^0.10.6" | ||
"babel-preset-stage-2": "^6.24.1", | ||
"file-saver": "^1.3.8", | ||
"xlsx": "^0.10.9" | ||
}, | ||
"devDependencies": { | ||
"@types/file-saver": "^0.0.1", | ||
"@types/file-saver": "0.0.1", | ||
"@types/xlsx": "^0.0.34", | ||
"awesome-typescript-loader": "^3.2.1", | ||
"awesome-typescript-loader": "3.2.1", | ||
"babel-core": "^6.25.0", | ||
@@ -52,5 +53,5 @@ "babel-loader": "^7.1.1", | ||
"rollup-plugin-babel": "^2.7.1", | ||
"rollup-plugin-commonjs": "^8.0.2", | ||
"rollup-plugin-commonjs": "^8.4.1", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-typescript": "^0.8.1", | ||
@@ -60,3 +61,3 @@ "rollup-plugin-uglify": "^2.0.1", | ||
"typescript": "^2.4.1", | ||
"webpack": "^3.0.0" | ||
"webpack": "3.10.0" | ||
}, | ||
@@ -63,0 +64,0 @@ "homepage": "https://github.com/dwqs/js2excel#readme", |
@@ -1,2 +0,2 @@ | ||
     | ||
    | ||
@@ -64,3 +64,3 @@ ## js2excel | ||
json2excel({ | ||
data | ||
data, | ||
name: 'user-info-data', | ||
@@ -76,3 +76,3 @@ formateDate: 'yyyy/mm/dd' | ||
json2excel({ | ||
data | ||
data, | ||
name: 'test', | ||
@@ -132,6 +132,5 @@ formateDate: 'dd/mm/yyyy' | ||
Type: `Array`, | ||
Type: `Array`<br/> | ||
Default: `[]` | ||
Default: [] | ||
Excel's data. | ||
@@ -141,6 +140,5 @@ | ||
Type: `String`, | ||
Type: `String`<br/> | ||
Default: `excel` | ||
Default: 'excel' | ||
Excel's name, whose suffix is `.xlsx`. | ||
@@ -150,6 +148,5 @@ | ||
Type: `String`, | ||
Type: `String` <br/> | ||
Default: `dd/mm/yyyy` | ||
Default: 'dd/mm/yyyy' | ||
The date formate in rows' data. Examples: | ||
@@ -191,3 +188,4 @@ | ||
Type: `String` | ||
Type: `String`<br/> | ||
Default: `''` | ||
@@ -213,3 +211,3 @@ The default value when the row data corresponding to the column is blank. | ||
Type: `String` | ||
Type: `String`<br/> | ||
Default: `UTF-8` | ||
@@ -216,0 +214,0 @@ |
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "umd", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
@@ -6,0 +6,0 @@ "rootDir": "src", |
@@ -7,7 +7,10 @@ export interface Params { | ||
export declare type CallBack = (data: any) => any; | ||
declare function json2excel(opts: Params): void; | ||
declare function excel2json(files: File[], cb: CallBack, defval?: string): any; | ||
declare function csv2json(files: File[], cb: CallBack, encode?: string, separator?: string): any; | ||
declare const js2excel: { | ||
excel2json: (files: File[], cb: CallBack, defval?: string) => any; | ||
json2excel: (opts: Params) => void; | ||
csv2json: (files: File[], cb: CallBack, encode?: string) => any; | ||
excel2json: typeof excel2json; | ||
json2excel: typeof json2excel; | ||
csv2json: typeof csv2json; | ||
}; | ||
export default js2excel; |
Sorry, the diff of this file is too big to display
907094
-0.12%3
50%3524
-0.03%216
-0.92%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
Updated
Updated