-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
70 lines (70 loc) · 1.9 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"name": "base-formatter",
"description": "Encoding to and decoding from any base",
"version": "1.0.3",
"license": "MPL-2.0",
"author": {
"name": "2sh",
"email": "contact@2sh.me"
},
"keywords": [
"formatting",
"hexadecimal",
"base-conversion",
"base58",
"base62",
"radix",
"numeral-systems",
"base",
"dozenal",
"duodecimal",
"base57",
"sexagesimal",
"vigesimal"
],
"repository": {
"type": "git",
"url": "https://github.com/2sh/base-formatter.git"
},
"type": "commonjs",
"main": "./dist/cjs/base-formatter.js",
"module": "./dist/esm/base-formatter.js",
"types": "./dist/types/base-formatter.d.ts",
"exports": {
".": {
"types": "./dist/types/base-formatter.d.ts",
"require": "./dist/cjs/base-formatter.js",
"import": "./dist/esm/base-formatter.js",
"default": "./dist/cjs/base-formatter.js"
}
},
"files": [
"/dist"
],
"scripts": {
"build": "yarn run clean && yarn run build:esm && yarn run build:cjs && yarn run build:types",
"clean": "rm -rf ./dist",
"build:esm": "tsc --project tsconfig.esm.json && echo '{\"type\": \"module\"}' > dist/esm/package.json",
"build:cjs": "tsc --project tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
"build:types": "tsc --project tsconfig.types.json",
"prepublishOnly": "yarn test && yarn run build",
"test": "ts-node test/tests.ts",
"lint": "eslint -c config/eslintrc.json src test",
"docs": "typedoc",
"demo": "ts-node test/demo.ts"
},
"dependencies": {
"decimal.js": "^10.4.3"
},
"devDependencies": {
"@types/node": "^20.2.5",
"@types/tape": "^5.6.0",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"eslint": "^8.42.0",
"tape": "^5.6.3",
"ts-node": "^10.9.1",
"typedoc": "^0.24.7",
"typescript": "^5.0.4"
}
}