Skip to content

Commit

Permalink
quick fix for npx
Browse files Browse the repository at this point in the history
  • Loading branch information
ak--47 committed Mar 1, 2022
1 parent a017d1c commit 1b81ee3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,18 @@ read more about [`credentials`](#credentials), [`data`](#data), and [`options`](
### stand-alone usage
clone the module:
```
git clone https://github.com/ak--47/mixpanel-import.git
$ git clone https://github.com/ak--47/mixpanel-import.git
```
run it and providing a path to the data you wish to import:
```
$ node index.js ./pathToData
```

alternatively:
```
$ npx mixpanel-import ./pathToData
```

when running stand-alone, `pathToData` can be a `.json`, `.jsonl`, `.ndjson`, or `.txt` file OR a directory which contains said files.

you will also need a [`.env` configuration file](#environment-variables)
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
"main": "index.js",
"scripts": {
"dev": "nodemon --ignore ./testData scratch.js",
"publish": "npm publish",
"import": "node index.js",
"generate": "NUMEVENTS=100000 SINCEDAYS=30 node generateFakeData.js",
"prune": "rm -rf ./testData/*"
},
"bin": {
"mixpanel-import": "./index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ak--47/mixpanel-import"
Expand Down

0 comments on commit 1b81ee3

Please sign in to comment.