rmapi-js 0.0.1
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/LICENSE +21 -0
- package/README.md +110 -0
- package/bundle/rmapi-js.cjs.min.js +4 -0
- package/bundle/rmapi-js.esm.min.js +4 -0
- package/bundle/rmapi-js.iife.min.js +4 -0
- package/bundle/rmapi.cjs.min.js +4 -0
- package/bundle/rmapi.esm.min.js +4 -0
- package/bundle/rmapi.iife.min.js +4 -0
- package/dist/index.d.ts +404 -0
- package/dist/index.js +535 -0
- package/dist/utils.d.ts +6 -0
- package/dist/utils.js +24 -0
- package/dist/validate.d.ts +3 -0
- package/dist/validate.js +8 -0
- package/package.json +141 -0
package/package.json
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rmapi-js",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "JavaScript implementation of the reMarkable 1.5 api",
|
|
5
|
+
"repository": "git@github.com:erikbrinkman/rmapi-js.git",
|
|
6
|
+
"author": "Erik Brinkman <erik.brinkman@gmail.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"remarkable"
|
|
10
|
+
],
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
|
+
"module": "bundle/rmapi-js.esm.min.js",
|
|
13
|
+
"main": "bundle/rmapi-js.cjs.min.js",
|
|
14
|
+
"unpkg": "bundle/rmapi-js.iife.min.js",
|
|
15
|
+
"files": [
|
|
16
|
+
"/bundle/*.js",
|
|
17
|
+
"/dist/**/*.js",
|
|
18
|
+
"/dist/**/*.d.ts"
|
|
19
|
+
],
|
|
20
|
+
"packageManager": "yarn@3.2.0",
|
|
21
|
+
"scripts": {
|
|
22
|
+
"doc": "typedoc",
|
|
23
|
+
"fmt": "prettier --write 'src/*.ts' '*.json' 'bundle.mjs'",
|
|
24
|
+
"lint": "tsc && eslint --cache 'src/*.ts' 'bundle.mjs' && typedoc --emit none",
|
|
25
|
+
"test": "jest --coverage",
|
|
26
|
+
"build": "tsc -p tsconfig.build.json && yarn node bundle.mjs",
|
|
27
|
+
"prepack": "yarn lint && yarn test && yarn build"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"ajv": "^8.11.0",
|
|
31
|
+
"uuid": "^8.3.2"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@babel/core": "^7.17.10",
|
|
35
|
+
"@babel/preset-env": "^7.17.10",
|
|
36
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
37
|
+
"@types/babel__core": "^7.1.19",
|
|
38
|
+
"@types/babel__preset-env": "^7.9.2",
|
|
39
|
+
"@types/jest": "^27.4.1",
|
|
40
|
+
"@types/node": "^17.0.31",
|
|
41
|
+
"@types/uuid": "^8.3.4",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^5.22.0",
|
|
43
|
+
"@typescript-eslint/parser": "^5.22.0",
|
|
44
|
+
"@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.4",
|
|
45
|
+
"babel-jest": "^28.0.3",
|
|
46
|
+
"chalk": "^4.1.2",
|
|
47
|
+
"esbuild": "^0.14.38",
|
|
48
|
+
"eslint": "^8.14.0",
|
|
49
|
+
"eslint-config-prettier": "^8.5.0",
|
|
50
|
+
"eslint-plugin-jest": "^26.1.5",
|
|
51
|
+
"eslint-plugin-spellcheck": "^0.0.19",
|
|
52
|
+
"eslint-plugin-tsdoc": "^0.2.16",
|
|
53
|
+
"jest": "^28.0.3",
|
|
54
|
+
"jtd": "^0.1.1",
|
|
55
|
+
"prettier": "^2.6.2",
|
|
56
|
+
"prettier-plugin-organize-imports": "^2.3.4",
|
|
57
|
+
"typedoc": "^0.22.15",
|
|
58
|
+
"typescript": "^4.6.4"
|
|
59
|
+
},
|
|
60
|
+
"prettier": {
|
|
61
|
+
"plugins": [
|
|
62
|
+
"prettier-plugin-organize-imports"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"babel": {
|
|
66
|
+
"presets": [
|
|
67
|
+
[
|
|
68
|
+
"@babel/preset-env",
|
|
69
|
+
{
|
|
70
|
+
"targets": {
|
|
71
|
+
"node": "current"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"@babel/preset-typescript"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"eslintConfig": {
|
|
79
|
+
"root": true,
|
|
80
|
+
"parser": "@typescript-eslint/parser",
|
|
81
|
+
"plugins": [
|
|
82
|
+
"@typescript-eslint",
|
|
83
|
+
"jest",
|
|
84
|
+
"spellcheck",
|
|
85
|
+
"eslint-plugin-tsdoc"
|
|
86
|
+
],
|
|
87
|
+
"extends": [
|
|
88
|
+
"eslint:recommended",
|
|
89
|
+
"plugin:@typescript-eslint/recommended",
|
|
90
|
+
"plugin:jest/recommended",
|
|
91
|
+
"prettier"
|
|
92
|
+
],
|
|
93
|
+
"env": {
|
|
94
|
+
"node": true
|
|
95
|
+
},
|
|
96
|
+
"rules": {
|
|
97
|
+
"tsdoc/syntax": "error",
|
|
98
|
+
"no-warning-comments": [
|
|
99
|
+
"error",
|
|
100
|
+
{
|
|
101
|
+
"terms": [
|
|
102
|
+
"fixme"
|
|
103
|
+
],
|
|
104
|
+
"location": "anywhere"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"spellcheck/spell-checker": [
|
|
108
|
+
"error",
|
|
109
|
+
{
|
|
110
|
+
"identifiers": false,
|
|
111
|
+
"skipWords": [
|
|
112
|
+
"Ballpointv",
|
|
113
|
+
"Finelinerv",
|
|
114
|
+
"Garamond",
|
|
115
|
+
"Highlighterv",
|
|
116
|
+
"Maison",
|
|
117
|
+
"Markable",
|
|
118
|
+
"Markerv",
|
|
119
|
+
"Neue",
|
|
120
|
+
"Noto",
|
|
121
|
+
"Paintbrushv",
|
|
122
|
+
"Pencilv",
|
|
123
|
+
"authed",
|
|
124
|
+
"ebooks",
|
|
125
|
+
"epub",
|
|
126
|
+
"fineliner",
|
|
127
|
+
"goog",
|
|
128
|
+
"iife",
|
|
129
|
+
"incrementing",
|
|
130
|
+
"linux",
|
|
131
|
+
"rmapi",
|
|
132
|
+
"subfiles",
|
|
133
|
+
"urls",
|
|
134
|
+
"webcrypto"
|
|
135
|
+
],
|
|
136
|
+
"minLength": 4
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|