style-xlsx-m 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/CHANGELOG.md +264 -0
  2. package/LICENSE +201 -0
  3. package/README.md +145 -0
  4. package/bin/xlsx.njs +310 -0
  5. package/bower.json +22 -0
  6. package/dist/LICENSE +201 -0
  7. package/dist/cpexcel.full.mjs +1502 -0
  8. package/dist/cpexcel.js +1506 -0
  9. package/dist/shim.min.js +2 -0
  10. package/dist/xlsx.core.min.js +15 -0
  11. package/dist/xlsx.core.min.map +1 -0
  12. package/dist/xlsx.extendscript.js +24642 -0
  13. package/dist/xlsx.full.min.js +22 -0
  14. package/dist/xlsx.full.min.map +1 -0
  15. package/dist/xlsx.mini.min.js +9 -0
  16. package/dist/xlsx.mini.min.map +1 -0
  17. package/dist/xlsx.zahl.js +4 -0
  18. package/dist/xlsx.zahl.mjs +2 -0
  19. package/package.json +101 -0
  20. package/types/index.d.ts +900 -0
  21. package/types/tsconfig.json +15 -0
  22. package/xlsx-js-style/LICENSE +201 -0
  23. package/xlsx-js-style/bin/xlsx.njs +284 -0
  24. package/xlsx-js-style/dist/LICENSE +201 -0
  25. package/xlsx-js-style/dist/cpexcel.full.mjs +1502 -0
  26. package/xlsx-js-style/dist/cpexcel.js +1506 -0
  27. package/xlsx-js-style/dist/shim.min.js +2 -0
  28. package/xlsx-js-style/dist/xlsx.bundle.js +3 -0
  29. package/xlsx-js-style/dist/xlsx.bundle.js.map +1 -0
  30. package/xlsx-js-style/dist/xlsx.min.js +3 -0
  31. package/xlsx-js-style/dist/xlsx.min.js.map +1 -0
  32. package/xlsx-js-style/node_modules/.bin/adler32 +12 -0
  33. package/xlsx-js-style/node_modules/.bin/adler32.cmd +17 -0
  34. package/xlsx-js-style/node_modules/.bin/adler32.ps1 +28 -0
  35. package/xlsx-js-style/node_modules/.bin/codepage +12 -0
  36. package/xlsx-js-style/node_modules/.bin/codepage.cmd +17 -0
  37. package/xlsx-js-style/node_modules/.bin/codepage.ps1 +28 -0
  38. package/xlsx-js-style/node_modules/adler-32/LICENSE +14 -0
  39. package/xlsx-js-style/node_modules/adler-32/README.md +139 -0
  40. package/xlsx-js-style/node_modules/adler-32/adler32.js +92 -0
  41. package/xlsx-js-style/node_modules/adler-32/bin/adler32.njs +87 -0
  42. package/xlsx-js-style/node_modules/adler-32/package.json +42 -0
  43. package/xlsx-js-style/node_modules/adler-32/types/index.d.ts +14 -0
  44. package/xlsx-js-style/node_modules/adler-32/types/tsconfig.json +14 -0
  45. package/xlsx-js-style/node_modules/adler-32/types/tslint.json +11 -0
  46. package/xlsx-js-style/node_modules/codepage/LICENSE +14 -0
  47. package/xlsx-js-style/node_modules/codepage/README.md +347 -0
  48. package/xlsx-js-style/node_modules/codepage/bin/codepage.njs +98 -0
  49. package/xlsx-js-style/node_modules/codepage/bits/10000.js +2 -0
  50. package/xlsx-js-style/node_modules/codepage/bits/10001.js +115 -0
  51. package/xlsx-js-style/node_modules/codepage/bits/10002.js +253 -0
  52. package/xlsx-js-style/node_modules/codepage/bits/10003.js +183 -0
  53. package/xlsx-js-style/node_modules/codepage/bits/10004.js +2 -0
  54. package/xlsx-js-style/node_modules/codepage/bits/10005.js +2 -0
  55. package/xlsx-js-style/node_modules/codepage/bits/10006.js +2 -0
  56. package/xlsx-js-style/node_modules/codepage/bits/10007.js +2 -0
  57. package/xlsx-js-style/node_modules/codepage/bits/10008.js +167 -0
  58. package/xlsx-js-style/node_modules/codepage/bits/10010.js +2 -0
  59. package/xlsx-js-style/node_modules/codepage/bits/10017.js +2 -0
  60. package/xlsx-js-style/node_modules/codepage/bits/10021.js +2 -0
  61. package/xlsx-js-style/node_modules/codepage/bits/10029.js +2 -0
  62. package/xlsx-js-style/node_modules/codepage/bits/10079.js +2 -0
  63. package/xlsx-js-style/node_modules/codepage/bits/10081.js +2 -0
  64. package/xlsx-js-style/node_modules/codepage/bits/10082.js +2 -0
  65. package/xlsx-js-style/node_modules/codepage/bits/1010.js +2 -0
  66. package/xlsx-js-style/node_modules/codepage/bits/1026.js +2 -0
  67. package/xlsx-js-style/node_modules/codepage/bits/1047.js +2 -0
  68. package/xlsx-js-style/node_modules/codepage/bits/1132.js +2 -0
  69. package/xlsx-js-style/node_modules/codepage/bits/1140.js +2 -0
  70. package/xlsx-js-style/node_modules/codepage/bits/1141.js +2 -0
  71. package/xlsx-js-style/node_modules/codepage/bits/1142.js +2 -0
  72. package/xlsx-js-style/node_modules/codepage/bits/1143.js +2 -0
  73. package/xlsx-js-style/node_modules/codepage/bits/1144.js +2 -0
  74. package/xlsx-js-style/node_modules/codepage/bits/1145.js +2 -0
  75. package/xlsx-js-style/node_modules/codepage/bits/1146.js +2 -0
  76. package/xlsx-js-style/node_modules/codepage/bits/1147.js +2 -0
  77. package/xlsx-js-style/node_modules/codepage/bits/1148.js +2 -0
  78. package/xlsx-js-style/node_modules/codepage/bits/1149.js +2 -0
  79. package/xlsx-js-style/node_modules/codepage/bits/1250.js +2 -0
  80. package/xlsx-js-style/node_modules/codepage/bits/1251.js +2 -0
  81. package/xlsx-js-style/node_modules/codepage/bits/1252.js +2 -0
  82. package/xlsx-js-style/node_modules/codepage/bits/1253.js +2 -0
  83. package/xlsx-js-style/node_modules/codepage/bits/1254.js +2 -0
  84. package/xlsx-js-style/node_modules/codepage/bits/1255.js +2 -0
  85. package/xlsx-js-style/node_modules/codepage/bits/1256.js +2 -0
  86. package/xlsx-js-style/node_modules/codepage/bits/1257.js +2 -0
  87. package/xlsx-js-style/node_modules/codepage/bits/1258.js +2 -0
  88. package/xlsx-js-style/node_modules/codepage/bits/1361.js +231 -0
  89. package/xlsx-js-style/node_modules/codepage/bits/20000.js +193 -0
  90. package/xlsx-js-style/node_modules/codepage/bits/20001.js +217 -0
  91. package/xlsx-js-style/node_modules/codepage/bits/20002.js +167 -0
  92. package/xlsx-js-style/node_modules/codepage/bits/20003.js +213 -0
  93. package/xlsx-js-style/node_modules/codepage/bits/20004.js +193 -0
  94. package/xlsx-js-style/node_modules/codepage/bits/20005.js +223 -0
  95. package/xlsx-js-style/node_modules/codepage/bits/20105.js +2 -0
  96. package/xlsx-js-style/node_modules/codepage/bits/20106.js +2 -0
  97. package/xlsx-js-style/node_modules/codepage/bits/20107.js +2 -0
  98. package/xlsx-js-style/node_modules/codepage/bits/20108.js +2 -0
  99. package/xlsx-js-style/node_modules/codepage/bits/20261.js +31 -0
  100. package/xlsx-js-style/node_modules/codepage/bits/20269.js +2 -0
  101. package/xlsx-js-style/node_modules/codepage/bits/20273.js +2 -0
  102. package/xlsx-js-style/node_modules/codepage/bits/20277.js +2 -0
  103. package/xlsx-js-style/node_modules/codepage/bits/20278.js +2 -0
  104. package/xlsx-js-style/node_modules/codepage/bits/20280.js +2 -0
  105. package/xlsx-js-style/node_modules/codepage/bits/20284.js +2 -0
  106. package/xlsx-js-style/node_modules/codepage/bits/20285.js +2 -0
  107. package/xlsx-js-style/node_modules/codepage/bits/20290.js +2 -0
  108. package/xlsx-js-style/node_modules/codepage/bits/20297.js +2 -0
  109. package/xlsx-js-style/node_modules/codepage/bits/20420.js +2 -0
  110. package/xlsx-js-style/node_modules/codepage/bits/20423.js +2 -0
  111. package/xlsx-js-style/node_modules/codepage/bits/20424.js +2 -0
  112. package/xlsx-js-style/node_modules/codepage/bits/20833.js +2 -0
  113. package/xlsx-js-style/node_modules/codepage/bits/20838.js +2 -0
  114. package/xlsx-js-style/node_modules/codepage/bits/20866.js +2 -0
  115. package/xlsx-js-style/node_modules/codepage/bits/20871.js +2 -0
  116. package/xlsx-js-style/node_modules/codepage/bits/20880.js +2 -0
  117. package/xlsx-js-style/node_modules/codepage/bits/20905.js +2 -0
  118. package/xlsx-js-style/node_modules/codepage/bits/20924.js +2 -0
  119. package/xlsx-js-style/node_modules/codepage/bits/20932.js +189 -0
  120. package/xlsx-js-style/node_modules/codepage/bits/20936.js +167 -0
  121. package/xlsx-js-style/node_modules/codepage/bits/20949.js +183 -0
  122. package/xlsx-js-style/node_modules/codepage/bits/21025.js +2 -0
  123. package/xlsx-js-style/node_modules/codepage/bits/21027.js +2 -0
  124. package/xlsx-js-style/node_modules/codepage/bits/21866.js +2 -0
  125. package/xlsx-js-style/node_modules/codepage/bits/28591.js +2 -0
  126. package/xlsx-js-style/node_modules/codepage/bits/28592.js +2 -0
  127. package/xlsx-js-style/node_modules/codepage/bits/28593.js +2 -0
  128. package/xlsx-js-style/node_modules/codepage/bits/28594.js +2 -0
  129. package/xlsx-js-style/node_modules/codepage/bits/28595.js +2 -0
  130. package/xlsx-js-style/node_modules/codepage/bits/28596.js +2 -0
  131. package/xlsx-js-style/node_modules/codepage/bits/28597.js +2 -0
  132. package/xlsx-js-style/node_modules/codepage/bits/28598.js +2 -0
  133. package/xlsx-js-style/node_modules/codepage/bits/28599.js +2 -0
  134. package/xlsx-js-style/node_modules/codepage/bits/28600.js +2 -0
  135. package/xlsx-js-style/node_modules/codepage/bits/28601.js +2 -0
  136. package/xlsx-js-style/node_modules/codepage/bits/28603.js +2 -0
  137. package/xlsx-js-style/node_modules/codepage/bits/28604.js +2 -0
  138. package/xlsx-js-style/node_modules/codepage/bits/28605.js +2 -0
  139. package/xlsx-js-style/node_modules/codepage/bits/28606.js +2 -0
  140. package/xlsx-js-style/node_modules/codepage/bits/29001.js +2 -0
  141. package/xlsx-js-style/node_modules/codepage/bits/37.js +2 -0
  142. package/xlsx-js-style/node_modules/codepage/bits/38598.js +2 -0
  143. package/xlsx-js-style/node_modules/codepage/bits/437.js +2 -0
  144. package/xlsx-js-style/node_modules/codepage/bits/47451.js +2 -0
  145. package/xlsx-js-style/node_modules/codepage/bits/500.js +2 -0
  146. package/xlsx-js-style/node_modules/codepage/bits/50220.js +395 -0
  147. package/xlsx-js-style/node_modules/codepage/bits/50221.js +395 -0
  148. package/xlsx-js-style/node_modules/codepage/bits/50222.js +395 -0
  149. package/xlsx-js-style/node_modules/codepage/bits/50225.js +259 -0
  150. package/xlsx-js-style/node_modules/codepage/bits/50227.js +257 -0
  151. package/xlsx-js-style/node_modules/codepage/bits/51932.js +171 -0
  152. package/xlsx-js-style/node_modules/codepage/bits/51936.js +257 -0
  153. package/xlsx-js-style/node_modules/codepage/bits/51949.js +183 -0
  154. package/xlsx-js-style/node_modules/codepage/bits/52936.js +7 -0
  155. package/xlsx-js-style/node_modules/codepage/bits/54936.js +257 -0
  156. package/xlsx-js-style/node_modules/codepage/bits/57002.js +39 -0
  157. package/xlsx-js-style/node_modules/codepage/bits/57003.js +23 -0
  158. package/xlsx-js-style/node_modules/codepage/bits/57004.js +7 -0
  159. package/xlsx-js-style/node_modules/codepage/bits/57005.js +15 -0
  160. package/xlsx-js-style/node_modules/codepage/bits/57006.js +23 -0
  161. package/xlsx-js-style/node_modules/codepage/bits/57007.js +21 -0
  162. package/xlsx-js-style/node_modules/codepage/bits/57008.js +17 -0
  163. package/xlsx-js-style/node_modules/codepage/bits/57009.js +13 -0
  164. package/xlsx-js-style/node_modules/codepage/bits/57010.js +15 -0
  165. package/xlsx-js-style/node_modules/codepage/bits/57011.js +17 -0
  166. package/xlsx-js-style/node_modules/codepage/bits/620.js +2 -0
  167. package/xlsx-js-style/node_modules/codepage/bits/708.js +2 -0
  168. package/xlsx-js-style/node_modules/codepage/bits/720.js +2 -0
  169. package/xlsx-js-style/node_modules/codepage/bits/737.js +2 -0
  170. package/xlsx-js-style/node_modules/codepage/bits/775.js +2 -0
  171. package/xlsx-js-style/node_modules/codepage/bits/808.js +2 -0
  172. package/xlsx-js-style/node_modules/codepage/bits/850.js +2 -0
  173. package/xlsx-js-style/node_modules/codepage/bits/852.js +2 -0
  174. package/xlsx-js-style/node_modules/codepage/bits/855.js +2 -0
  175. package/xlsx-js-style/node_modules/codepage/bits/857.js +2 -0
  176. package/xlsx-js-style/node_modules/codepage/bits/858.js +2 -0
  177. package/xlsx-js-style/node_modules/codepage/bits/860.js +2 -0
  178. package/xlsx-js-style/node_modules/codepage/bits/861.js +2 -0
  179. package/xlsx-js-style/node_modules/codepage/bits/862.js +2 -0
  180. package/xlsx-js-style/node_modules/codepage/bits/863.js +2 -0
  181. package/xlsx-js-style/node_modules/codepage/bits/864.js +2 -0
  182. package/xlsx-js-style/node_modules/codepage/bits/865.js +2 -0
  183. package/xlsx-js-style/node_modules/codepage/bits/866.js +2 -0
  184. package/xlsx-js-style/node_modules/codepage/bits/869.js +2 -0
  185. package/xlsx-js-style/node_modules/codepage/bits/870.js +2 -0
  186. package/xlsx-js-style/node_modules/codepage/bits/872.js +2 -0
  187. package/xlsx-js-style/node_modules/codepage/bits/874.js +2 -0
  188. package/xlsx-js-style/node_modules/codepage/bits/875.js +2 -0
  189. package/xlsx-js-style/node_modules/codepage/bits/895.js +2 -0
  190. package/xlsx-js-style/node_modules/codepage/bits/932.js +95 -0
  191. package/xlsx-js-style/node_modules/codepage/bits/936.js +257 -0
  192. package/xlsx-js-style/node_modules/codepage/bits/949.js +253 -0
  193. package/xlsx-js-style/node_modules/codepage/bits/950.js +179 -0
  194. package/xlsx-js-style/node_modules/codepage/cptable.js +6347 -0
  195. package/xlsx-js-style/node_modules/codepage/cputils.js +528 -0
  196. package/xlsx-js-style/node_modules/codepage/dist/LICENSE +14 -0
  197. package/xlsx-js-style/node_modules/codepage/dist/cpexcel.full.js +1505 -0
  198. package/xlsx-js-style/node_modules/codepage/dist/cputils.js +528 -0
  199. package/xlsx-js-style/node_modules/codepage/dist/sbcs.full.js +639 -0
  200. package/xlsx-js-style/node_modules/codepage/node_modules/commander/CHANGELOG.md +350 -0
  201. package/xlsx-js-style/node_modules/codepage/node_modules/commander/LICENSE +22 -0
  202. package/xlsx-js-style/node_modules/codepage/node_modules/commander/Readme.md +408 -0
  203. package/xlsx-js-style/node_modules/codepage/node_modules/commander/index.js +1157 -0
  204. package/xlsx-js-style/node_modules/codepage/node_modules/commander/package.json +37 -0
  205. package/xlsx-js-style/node_modules/codepage/node_modules/commander/typings/index.d.ts +309 -0
  206. package/xlsx-js-style/node_modules/codepage/package.json +67 -0
  207. package/xlsx-js-style/node_modules/codepage/types/index.d.ts +39 -0
  208. package/xlsx-js-style/node_modules/codepage/types/tsconfig.json +14 -0
  209. package/xlsx-js-style/node_modules/codepage/types/tslint.json +11 -0
  210. package/xlsx-js-style/package.json +90 -0
  211. package/xlsx-js-style/types/index.d.ts +1065 -0
  212. package/xlsx-js-style/types/tsconfig.json +15 -0
  213. package/xlsx.js +24711 -0
  214. package/xlsx.mjs +24597 -0
  215. package/xlsxworker.js +14 -0
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "commander",
3
+ "version": "2.14.1",
4
+ "description": "the complete solution for node.js command-line programs",
5
+ "keywords": [
6
+ "commander",
7
+ "command",
8
+ "option",
9
+ "parser"
10
+ ],
11
+ "author": "TJ Holowaychuk <tj@vision-media.ca>",
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/tj/commander.js.git"
16
+ },
17
+ "scripts": {
18
+ "lint": "eslint index.js",
19
+ "test": "make test && npm run test-typings",
20
+ "test-typings": "node_modules/typescript/bin/tsc -p tsconfig.json"
21
+ },
22
+ "main": "index",
23
+ "files": [
24
+ "index.js",
25
+ "typings/index.d.ts"
26
+ ],
27
+ "dependencies": {},
28
+ "devDependencies": {
29
+ "@types/node": "^7.0.52",
30
+ "eslint": "^3.19.0",
31
+ "should": "^11.2.1",
32
+ "sinon": "^2.4.1",
33
+ "standard": "^10.0.3",
34
+ "typescript": "^2.7.1"
35
+ },
36
+ "typings": "typings/index.d.ts"
37
+ }
@@ -0,0 +1,309 @@
1
+ // Type definitions for commander 2.11
2
+ // Project: https://github.com/visionmedia/commander.js
3
+ // Definitions by: Alan Agius <https://github.com/alan-agius4>, Marcelo Dezem <https://github.com/mdezem>, vvakame <https://github.com/vvakame>, Jules Randolph <https://github.com/sveinburne>
4
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
+
6
+ declare namespace local {
7
+
8
+ class Option {
9
+ flags: string;
10
+ required: boolean;
11
+ optional: boolean;
12
+ bool: boolean;
13
+ short?: string;
14
+ long: string;
15
+ description: string;
16
+
17
+ /**
18
+ * Initialize a new `Option` with the given `flags` and `description`.
19
+ *
20
+ * @param {string} flags
21
+ * @param {string} [description]
22
+ */
23
+ constructor(flags: string, description?: string);
24
+ }
25
+
26
+ class Command extends NodeJS.EventEmitter {
27
+ [key: string]: any;
28
+
29
+ args: string[];
30
+
31
+ /**
32
+ * Initialize a new `Command`.
33
+ *
34
+ * @param {string} [name]
35
+ */
36
+ constructor(name?: string);
37
+
38
+ /**
39
+ * Set the program version to `str`.
40
+ *
41
+ * This method auto-registers the "-V, --version" flag
42
+ * which will print the version number when passed.
43
+ *
44
+ * @param {string} str
45
+ * @param {string} [flags]
46
+ * @returns {Command} for chaining
47
+ */
48
+ version(str: string, flags?: string): Command;
49
+
50
+ /**
51
+ * Add command `name`.
52
+ *
53
+ * The `.action()` callback is invoked when the
54
+ * command `name` is specified via __ARGV__,
55
+ * and the remaining arguments are applied to the
56
+ * function for access.
57
+ *
58
+ * When the `name` is "*" an un-matched command
59
+ * will be passed as the first arg, followed by
60
+ * the rest of __ARGV__ remaining.
61
+ *
62
+ * @example
63
+ * program
64
+ * .version('0.0.1')
65
+ * .option('-C, --chdir <path>', 'change the working directory')
66
+ * .option('-c, --config <path>', 'set config path. defaults to ./deploy.conf')
67
+ * .option('-T, --no-tests', 'ignore test hook')
68
+ *
69
+ * program
70
+ * .command('setup')
71
+ * .description('run remote setup commands')
72
+ * .action(function() {
73
+ * console.log('setup');
74
+ * });
75
+ *
76
+ * program
77
+ * .command('exec <cmd>')
78
+ * .description('run the given remote command')
79
+ * .action(function(cmd) {
80
+ * console.log('exec "%s"', cmd);
81
+ * });
82
+ *
83
+ * program
84
+ * .command('teardown <dir> [otherDirs...]')
85
+ * .description('run teardown commands')
86
+ * .action(function(dir, otherDirs) {
87
+ * console.log('dir "%s"', dir);
88
+ * if (otherDirs) {
89
+ * otherDirs.forEach(function (oDir) {
90
+ * console.log('dir "%s"', oDir);
91
+ * });
92
+ * }
93
+ * });
94
+ *
95
+ * program
96
+ * .command('*')
97
+ * .description('deploy the given env')
98
+ * .action(function(env) {
99
+ * console.log('deploying "%s"', env);
100
+ * });
101
+ *
102
+ * program.parse(process.argv);
103
+ *
104
+ * @param {string} name
105
+ * @param {string} [desc] for git-style sub-commands
106
+ * @param {CommandOptions} [opts] command options
107
+ * @returns {Command} the new command
108
+ */
109
+ command(name: string, desc?: string, opts?: commander.CommandOptions): Command;
110
+
111
+ /**
112
+ * Define argument syntax for the top-level command.
113
+ *
114
+ * @param {string} desc
115
+ * @returns {Command} for chaining
116
+ */
117
+ arguments(desc: string): Command;
118
+
119
+ /**
120
+ * Parse expected `args`.
121
+ *
122
+ * For example `["[type]"]` becomes `[{ required: false, name: 'type' }]`.
123
+ *
124
+ * @param {string[]} args
125
+ * @returns {Command} for chaining
126
+ */
127
+ parseExpectedArgs(args: string[]): Command;
128
+
129
+ /**
130
+ * Register callback `fn` for the command.
131
+ *
132
+ * @example
133
+ * program
134
+ * .command('help')
135
+ * .description('display verbose help')
136
+ * .action(function() {
137
+ * // output help here
138
+ * });
139
+ *
140
+ * @param {(...args: any[]) => void} fn
141
+ * @returns {Command} for chaining
142
+ */
143
+ action(fn: (...args: any[]) => void): Command;
144
+
145
+ /**
146
+ * Define option with `flags`, `description` and optional
147
+ * coercion `fn`.
148
+ *
149
+ * The `flags` string should contain both the short and long flags,
150
+ * separated by comma, a pipe or space. The following are all valid
151
+ * all will output this way when `--help` is used.
152
+ *
153
+ * "-p, --pepper"
154
+ * "-p|--pepper"
155
+ * "-p --pepper"
156
+ *
157
+ * @example
158
+ * // simple boolean defaulting to false
159
+ * program.option('-p, --pepper', 'add pepper');
160
+ *
161
+ * --pepper
162
+ * program.pepper
163
+ * // => Boolean
164
+ *
165
+ * // simple boolean defaulting to true
166
+ * program.option('-C, --no-cheese', 'remove cheese');
167
+ *
168
+ * program.cheese
169
+ * // => true
170
+ *
171
+ * --no-cheese
172
+ * program.cheese
173
+ * // => false
174
+ *
175
+ * // required argument
176
+ * program.option('-C, --chdir <path>', 'change the working directory');
177
+ *
178
+ * --chdir /tmp
179
+ * program.chdir
180
+ * // => "/tmp"
181
+ *
182
+ * // optional argument
183
+ * program.option('-c, --cheese [type]', 'add cheese [marble]');
184
+ *
185
+ * @param {string} flags
186
+ * @param {string} [description]
187
+ * @param {((arg1: any, arg2: any) => void) | RegExp} [fn] function or default
188
+ * @param {*} [defaultValue]
189
+ * @returns {Command} for chaining
190
+ */
191
+ option(flags: string, description?: string, fn?: ((arg1: any, arg2: any) => void) | RegExp, defaultValue?: any): Command;
192
+ option(flags: string, description?: string, defaultValue?: any): Command;
193
+
194
+ /**
195
+ * Allow unknown options on the command line.
196
+ *
197
+ * @param {boolean} [arg] if `true` or omitted, no error will be thrown for unknown options.
198
+ * @returns {Command} for chaining
199
+ */
200
+ allowUnknownOption(arg?: boolean): Command;
201
+
202
+ /**
203
+ * Parse `argv`, settings options and invoking commands when defined.
204
+ *
205
+ * @param {string[]} argv
206
+ * @returns {Command} for chaining
207
+ */
208
+ parse(argv: string[]): Command;
209
+
210
+ /**
211
+ * Parse options from `argv` returning `argv` void of these options.
212
+ *
213
+ * @param {string[]} argv
214
+ * @returns {ParseOptionsResult}
215
+ */
216
+ parseOptions(argv: string[]): commander.ParseOptionsResult;
217
+
218
+ /**
219
+ * Return an object containing options as key-value pairs
220
+ *
221
+ * @returns {{[key: string]: string}}
222
+ */
223
+ opts(): { [key: string]: string };
224
+
225
+ /**
226
+ * Set the description to `str`.
227
+ *
228
+ * @param {string} str
229
+ * @return {(Command | string)}
230
+ */
231
+ description(str: string): Command;
232
+ description(): string;
233
+
234
+ /**
235
+ * Set an alias for the command.
236
+ *
237
+ * @param {string} alias
238
+ * @return {(Command | string)}
239
+ */
240
+ alias(alias: string): Command;
241
+ alias(): string;
242
+
243
+ /**
244
+ * Set or get the command usage.
245
+ *
246
+ * @param {string} str
247
+ * @return {(Command | string)}
248
+ */
249
+ usage(str: string): Command;
250
+ usage(): string;
251
+
252
+ /**
253
+ * Set the name of the command.
254
+ *
255
+ * @param {string} str
256
+ * @return {Command}
257
+ */
258
+ name(str: string): Command;
259
+
260
+ /**
261
+ * Get the name of the command.
262
+ *
263
+ * @return {string}
264
+ */
265
+ name(): string;
266
+
267
+ /**
268
+ * Output help information for this command.
269
+ *
270
+ * @param {(str: string) => string} [cb]
271
+ */
272
+ outputHelp(cb?: (str: string) => string): void;
273
+
274
+ /** Output help information and exit.
275
+ *
276
+ * @param {(str: string) => string} [cb]
277
+ */
278
+ help(cb?: (str: string) => string): void;
279
+ }
280
+
281
+ }
282
+
283
+ declare namespace commander {
284
+
285
+ type Command = local.Command
286
+
287
+ type Option = local.Option
288
+
289
+ interface CommandOptions {
290
+ noHelp?: boolean;
291
+ isDefault?: boolean;
292
+ }
293
+
294
+ interface ParseOptionsResult {
295
+ args: string[];
296
+ unknown: string[];
297
+ }
298
+
299
+ interface CommanderStatic extends Command {
300
+ Command: typeof local.Command;
301
+ Option: typeof local.Option;
302
+ CommandOptions: CommandOptions;
303
+ ParseOptionsResult: ParseOptionsResult;
304
+ }
305
+
306
+ }
307
+
308
+ declare const commander: commander.CommanderStatic;
309
+ export = commander;
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "codepage",
3
+ "version": "1.14.0",
4
+ "author": "SheetJS",
5
+ "description": "pure-JS library to handle codepages",
6
+ "keywords": [ "codepage", "iconv", "convert", "strings" ],
7
+ "bin": {
8
+ "codepage": "./bin/codepage.njs"
9
+ },
10
+ "main": "cputils.js",
11
+ "types": "types",
12
+ "browser": {
13
+ "buffer": "false"
14
+ },
15
+ "dependencies": {
16
+ "commander": "~2.14.1",
17
+ "exit-on-epipe": "~1.0.1"
18
+ },
19
+ "devDependencies": {
20
+ "voc": "~1.1.0",
21
+ "mocha": "~2.5.3",
22
+ "blanket": "~1.2.3",
23
+ "@sheetjs/uglify-js": "~2.7.3",
24
+ "@types/node": "^8.0.7",
25
+ "@types/commander": "^2.12.0",
26
+ "dtslint": "^0.1.2",
27
+ "typescript": "2.2.0"
28
+ },
29
+ "repository": { "type":"git", "url":"git://github.com/SheetJS/js-codepage.git"},
30
+ "scripts": {
31
+ "pretest": "git submodule init && git submodule update",
32
+ "test": "make test",
33
+ "build": "make js",
34
+ "lint": "make fullint",
35
+ "dtslint": "dtslint types"
36
+ },
37
+ "config": {
38
+ "blanket": {
39
+ "pattern": "[cputils.js]"
40
+ }
41
+ },
42
+ "alex": {
43
+ "allow": [
44
+ "chinese",
45
+ "european",
46
+ "german",
47
+ "japanese",
48
+ "latin"
49
+ ]
50
+ },
51
+ "homepage": "http://sheetjs.com/opensource",
52
+ "files": [
53
+ "LICENSE",
54
+ "README.md",
55
+ "bin",
56
+ "bits/*.js",
57
+ "types/index.d.ts",
58
+ "types/*.json",
59
+ "cptable.js",
60
+ "cputils.js",
61
+ "dist/sbcs.full.js",
62
+ "dist/cpexcel.full.js"
63
+ ],
64
+ "bugs": { "url": "https://github.com/SheetJS/js-codepage/issues" },
65
+ "license": "Apache-2.0",
66
+ "engines": { "node": ">=0.8" }
67
+ }
@@ -0,0 +1,39 @@
1
+ /* codepage.js (C) 2013-present SheetJS -- http://sheetjs.com */
2
+ // TypeScript Version: 2.2
3
+
4
+ /** Codepage index type (integer or string representation) */
5
+ export type CP$Index = number | string;
6
+
7
+ /* Individual codepage converter */
8
+ export interface CP$Conv {
9
+ enc: {[n: string]: number; };
10
+ dec: {[n: number]: string; };
11
+ }
12
+
13
+ /** Encode input type (string, array of characters, Buffer) */
14
+ export type CP$String = string | string[] | Uint8Array;
15
+
16
+ /** Encode output / decode input type */
17
+ export type CP$Data = string | number[] | Uint8Array;
18
+
19
+ /** General utilities */
20
+ export interface CP$Utils {
21
+ decode(cp: CP$Index, data: CP$Data): string;
22
+ encode(cp: CP$Index, data: CP$String, opts?: any): CP$Data;
23
+ hascp(n: number): boolean;
24
+ magic: {[cp: string]: string};
25
+ }
26
+
27
+ /* note: TS cannot export top-level indexer, hence default workaround */
28
+ export interface CP$Module {
29
+ /** Version string */
30
+ version: string;
31
+
32
+ /** Utility Functions */
33
+ utils: CP$Utils;
34
+
35
+ /** Codepage Converters */
36
+ [cp: number]: CP$Conv;
37
+ }
38
+ export const cptable: CP$Module;
39
+ export default cptable;
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "commonjs",
4
+ "lib": [ "es5" ],
5
+ "noImplicitAny": true,
6
+ "noImplicitThis": true,
7
+ "strictNullChecks": false,
8
+ "baseUrl": ".",
9
+ "paths": { "codepage": ["."] },
10
+ "types": [],
11
+ "noEmit": true,
12
+ "forceConsistentCasingInFileNames": true
13
+ }
14
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "dtslint/dtslint.json",
3
+ "rules": {
4
+ "whitespace": false,
5
+ "no-sparse-arrays": false,
6
+ "only-arrow-functions": false,
7
+ "no-consecutive-blank-lines": false,
8
+ "prefer-conditional-expression": false,
9
+ "one-variable-per-declaration": false
10
+ }
11
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "name": "xlsx-js-style",
3
+ "version": "1.2.0",
4
+ "author": "gitbrent",
5
+ "description": "SheetJS Spreadsheet Community Edition plus Basic Cell Styles",
6
+ "homepage": "https://github.com/gitbrent/xlsx-js-style/",
7
+ "keywords": [
8
+ "excel",
9
+ "xls",
10
+ "xlsx",
11
+ "xlsb",
12
+ "xlsm",
13
+ "office",
14
+ "spreadsheet",
15
+ "js-xlsx",
16
+ "xlsx-js",
17
+ "sheetjs-style",
18
+ "sheetjs-style-v2"
19
+ ],
20
+ "bin": {
21
+ "xlsx": "./bin/xlsx.njs"
22
+ },
23
+ "main": "dist/xlsx.min.js",
24
+ "unpkg": "dist/xlsx.min.js",
25
+ "jsdelivr": "dist/xlsx.min.js",
26
+ "files": [
27
+ "dist",
28
+ "libs",
29
+ "types"
30
+ ],
31
+ "types": "types",
32
+ "browser": {
33
+ "buffer": false,
34
+ "crypto": false,
35
+ "stream": false,
36
+ "process": false,
37
+ "fs": false
38
+ },
39
+ "dependencies": {
40
+ "adler-32": "~1.2.0",
41
+ "cfb": "^1.1.4",
42
+ "codepage": "~1.14.0",
43
+ "commander": "~2.17.1",
44
+ "crc-32": "~1.2.0",
45
+ "exit-on-epipe": "~1.0.1",
46
+ "fflate": "^0.3.8",
47
+ "ssf": "~0.11.2",
48
+ "wmf": "~1.0.1",
49
+ "word": "~0.3.0"
50
+ },
51
+ "devDependencies": {
52
+ "@types/node": "^8.5.9",
53
+ "gulp": "^4.0.2",
54
+ "gulp-concat": "^2.6.1",
55
+ "gulp-ignore": "^3.0.0",
56
+ "gulp-insert": "^0.5.0",
57
+ "gulp-replace": "^1.1.3",
58
+ "gulp-sourcemaps": "^3.0.0",
59
+ "gulp-uglify": "^3.0.2"
60
+ },
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "git://github.com/gitbrent/xlsx-js-style.git"
64
+ },
65
+ "scripts": {
66
+ "ship": "gulp ship"
67
+ },
68
+ "config": {
69
+ "blanket": {
70
+ "pattern": "xlsx.js"
71
+ }
72
+ },
73
+ "alex": {
74
+ "allow": [
75
+ "special",
76
+ "simple",
77
+ "just",
78
+ "crash",
79
+ "wtf",
80
+ "holes"
81
+ ]
82
+ },
83
+ "bugs": {
84
+ "url": "https://github.com/gitbrent/xlsx-js-style/issues"
85
+ },
86
+ "license": "Apache-2.0",
87
+ "engines": {
88
+ "node": ">=0.8"
89
+ }
90
+ }