make-mp-data 1.0.7 → 1.0.9
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.
- package/cli.js +2 -1
- package/index.js +22 -3
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -10,9 +10,10 @@ makes all the things for mixpanel (v${version || 1})
|
|
|
10
10
|
by ak@mixpanel.com
|
|
11
11
|
`;
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
|
|
15
15
|
function cliParams() {
|
|
16
|
+
console.log(hero);
|
|
16
17
|
const args = yargs(process.argv.splice(2))
|
|
17
18
|
.scriptName("make-mp-data")
|
|
18
19
|
.usage(`\nusage:\nnpx $0 [dataModel.js] [options]
|
package/index.js
CHANGED
|
@@ -14,12 +14,17 @@ const chance = new Chance();
|
|
|
14
14
|
const { touch, comma, bytesHuman, mkdir } = require("ak-tools");
|
|
15
15
|
const Papa = require("papaparse");
|
|
16
16
|
const {
|
|
17
|
-
integer,
|
|
18
|
-
pick,
|
|
19
17
|
weightedRange,
|
|
18
|
+
pick,
|
|
19
|
+
day,
|
|
20
|
+
integer,
|
|
21
|
+
makeProducts,
|
|
22
|
+
date,
|
|
20
23
|
progress,
|
|
21
24
|
person,
|
|
22
25
|
choose,
|
|
26
|
+
range,
|
|
27
|
+
exhaust,
|
|
23
28
|
openFinder
|
|
24
29
|
} = require("./utils.js");
|
|
25
30
|
const dayjs = require("dayjs");
|
|
@@ -409,7 +414,21 @@ if (require.main === module) {
|
|
|
409
414
|
}
|
|
410
415
|
|
|
411
416
|
else {
|
|
412
|
-
module.exports =
|
|
417
|
+
module.exports = {
|
|
418
|
+
generate: main,
|
|
419
|
+
weightedRange,
|
|
420
|
+
pick,
|
|
421
|
+
day,
|
|
422
|
+
integer,
|
|
423
|
+
makeProducts,
|
|
424
|
+
date,
|
|
425
|
+
progress,
|
|
426
|
+
person,
|
|
427
|
+
choose,
|
|
428
|
+
range,
|
|
429
|
+
exhaust,
|
|
430
|
+
openFinder
|
|
431
|
+
};
|
|
413
432
|
}
|
|
414
433
|
|
|
415
434
|
|