datajam 0.1.1 → 0.1.2
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/README.md +31 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# datajam
|
|
2
|
+
|
|
3
|
+
Local-first Stripe analytics SDK for Node.js.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install datajam
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick start
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { DataJam } from "datajam";
|
|
15
|
+
|
|
16
|
+
const datajam = new DataJam({
|
|
17
|
+
stripeSecretKey: process.env.STRIPE_SECRET_KEY
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
await datajam.sync();
|
|
21
|
+
await datajam.dashboard();
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## CLI
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npx datajam init
|
|
28
|
+
npx datajam sync
|
|
29
|
+
npx datajam dashboard
|
|
30
|
+
npx datajam doctor
|
|
31
|
+
```
|