UNPKG

2.48 kBJSONView Raw
1{
2 "name": "ow",
3 "version": "2.0.0",
4 "description": "Function argument validation for humans",
5 "license": "MIT",
6 "repository": "sindresorhus/ow",
7 "funding": "https://github.com/sponsors/sindresorhus",
8 "author": {
9 "name": "Sindre Sorhus",
10 "email": "sindresorhus@gmail.com",
11 "url": "https://sindresorhus.com"
12 },
13 "type": "module",
14 "exports": {
15 ".": {
16 "types": "./dist/index.d.ts",
17 "default": "./dist/index.js"
18 },
19 "./dev-only": {
20 "types": "./dist/index.d.ts",
21 "default": "./dev-only.js"
22 }
23 },
24 "sideEffects": false,
25 "engines": {
26 "node": ">=18"
27 },
28 "scripts": {
29 "test": "xo && NODE_OPTIONS='--import=tsx/esm' c8 ava",
30 "docs": "typedoc source/index.ts",
31 "build": "del-cli dist && tsc",
32 "prepare": "npm run build",
33 "postpublish": "npm run docs && gh-pages --dist docs --no-history --message \"Deploy documentation\"",
34 "example": "npm run build && node example.js"
35 },
36 "files": [
37 "dist",
38 "dev-only.js"
39 ],
40 "keywords": [
41 "type",
42 "types",
43 "check",
44 "checking",
45 "guard",
46 "guards",
47 "assert",
48 "assertion",
49 "predicate",
50 "predicates",
51 "is",
52 "validate",
53 "validation",
54 "utility",
55 "util",
56 "typeof",
57 "instanceof",
58 "object"
59 ],
60 "dependencies": {
61 "@sindresorhus/is": "^6.3.0",
62 "callsites": "^4.1.0",
63 "dot-prop": "^8.0.2",
64 "environment": "^1.0.0",
65 "fast-equals": "^5.0.1",
66 "is-identifier": "^1.0.0"
67 },
68 "devDependencies": {
69 "@sindresorhus/tsconfig": "^5.0.0",
70 "@types/node": "^20.12.8",
71 "ava": "^6.1.2",
72 "c8": "^9.1.0",
73 "del-cli": "^5.1.0",
74 "expect-type": "^0.19.0",
75 "gh-pages": "^6.1.1",
76 "tsx": "^4.9.1",
77 "typedoc": "^0.25.13",
78 "typescript": "^5.4.5",
79 "xo": "^0.58.0"
80 },
81 "browser": {
82 "./dist/utils/infer-label.js": "./dist/utils/infer-label.browser.js"
83 },
84 "xo": {
85 "ignores": [
86 "example.js",
87 "dev-only.js",
88 "source/utils/infer-label.browser.ts"
89 ],
90 "rules": {
91 "no-useless-return": "off",
92 "@typescript-eslint/explicit-function-return-type": "error",
93 "@typescript-eslint/ban-types": "off",
94 "@typescript-eslint/no-explicit-any": "off",
95 "@typescript-eslint/no-empty-function": "off",
96 "@typescript-eslint/restrict-template-expressions": "off",
97 "@typescript-eslint/no-unsafe-return": "off",
98 "@typescript-eslint/no-unsafe-argument": "off"
99 }
100 },
101 "ava": {
102 "files": [
103 "test/**",
104 "!test/fixtures/**"
105 ],
106 "extensions": {
107 "ts": "module"
108 },
109 "workerThreads": false
110 },
111 "c8": {
112 "reporter": [
113 "text",
114 "lcov"
115 ]
116 }
117}