1 | {
|
2 | "title": "TypeChecker",
|
3 | "name": "typechecker",
|
4 | "version": "9.3.0",
|
5 | "license": "Artistic-2.0",
|
6 | "description": "Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)",
|
7 | "homepage": "https://github.com/bevry/typechecker",
|
8 | "funding": "https://bevry.me/fund",
|
9 | "repository": {
|
10 | "type": "git",
|
11 | "url": "https://github.com/bevry/typechecker.git"
|
12 | },
|
13 | "bugs": {
|
14 | "url": "https://github.com/bevry/typechecker/issues"
|
15 | },
|
16 | "keywords": [
|
17 | "array",
|
18 | "assert",
|
19 | "assertion",
|
20 | "async",
|
21 | "async function",
|
22 | "async-function",
|
23 | "asyncFunction",
|
24 | "bool",
|
25 | "boolean",
|
26 | "browser",
|
27 | "check",
|
28 | "check-type",
|
29 | "checking",
|
30 | "class",
|
31 | "class-identifier",
|
32 | "class-instance",
|
33 | "compare",
|
34 | "conventional class",
|
35 | "conventional-class",
|
36 | "conventionalClass",
|
37 | "date",
|
38 | "define-type",
|
39 | "deno",
|
40 | "deno-edition",
|
41 | "deno-entry",
|
42 | "denoland",
|
43 | "empty",
|
44 | "empty array",
|
45 | "empty keys",
|
46 | "empty map",
|
47 | "empty plain object",
|
48 | "empty-array",
|
49 | "empty-keys",
|
50 | "empty-map",
|
51 | "empty-plain-object",
|
52 | "emptyArray",
|
53 | "emptyKeys",
|
54 | "emptyMap",
|
55 | "emptyPlainObject",
|
56 | "error",
|
57 | "es2022",
|
58 | "es5",
|
59 | "function",
|
60 | "get object type",
|
61 | "get type",
|
62 | "get-object-type",
|
63 | "get-type",
|
64 | "getObjectType",
|
65 | "getType",
|
66 | "instanceof",
|
67 | "is",
|
68 | "is arguments",
|
69 | "is array",
|
70 | "is async",
|
71 | "is async function",
|
72 | "is bool",
|
73 | "is boolean",
|
74 | "is class",
|
75 | "is conventional class",
|
76 | "is date",
|
77 | "is empty array",
|
78 | "is empty keys",
|
79 | "is empty map",
|
80 | "is empty plain object",
|
81 | "is empty weak map",
|
82 | "is error",
|
83 | "is function",
|
84 | "is map",
|
85 | "is native class",
|
86 | "is null",
|
87 | "is nullish",
|
88 | "is number",
|
89 | "is object",
|
90 | "is plain object",
|
91 | "is regexp",
|
92 | "is string",
|
93 | "is sync",
|
94 | "is sync function",
|
95 | "is undefined",
|
96 | "is weak map",
|
97 | "is-arguments",
|
98 | "is-array",
|
99 | "is-async",
|
100 | "is-async-function",
|
101 | "is-bool",
|
102 | "is-boolean",
|
103 | "is-class",
|
104 | "is-conventional-class",
|
105 | "is-date",
|
106 | "is-empty-array",
|
107 | "is-empty-keys",
|
108 | "is-empty-map",
|
109 | "is-empty-plain-object",
|
110 | "is-empty-weak-map",
|
111 | "is-error",
|
112 | "is-function",
|
113 | "is-map",
|
114 | "is-native-class",
|
115 | "is-null",
|
116 | "is-nullish",
|
117 | "is-number",
|
118 | "is-object",
|
119 | "is-plain-obj",
|
120 | "is-plain-object",
|
121 | "is-regexp",
|
122 | "is-string",
|
123 | "is-sync",
|
124 | "is-sync-function",
|
125 | "is-undefined",
|
126 | "is-weak-map",
|
127 | "isArguments",
|
128 | "isArray",
|
129 | "isAsyncFunction",
|
130 | "isBool",
|
131 | "isBoolean",
|
132 | "isClass",
|
133 | "isConventionalClass",
|
134 | "isDate",
|
135 | "isEmptyArray",
|
136 | "isEmptyKeys",
|
137 | "isEmptyMap",
|
138 | "isEmptyPlainObject",
|
139 | "isEmptyWeakMap",
|
140 | "isError",
|
141 | "isFunction",
|
142 | "isMap",
|
143 | "isNativeClass",
|
144 | "isNull",
|
145 | "isNullish",
|
146 | "isNumber",
|
147 | "isObject",
|
148 | "isRegExp",
|
149 | "isString",
|
150 | "isSync",
|
151 | "isSyncFunction",
|
152 | "isUndefined",
|
153 | "isWeakMap",
|
154 | "javascript",
|
155 | "javascript-type",
|
156 | "keys",
|
157 | "kind",
|
158 | "map",
|
159 | "module",
|
160 | "native",
|
161 | "native class",
|
162 | "native-class",
|
163 | "nativeClass",
|
164 | "node",
|
165 | "null",
|
166 | "number",
|
167 | "object",
|
168 | "plain",
|
169 | "plain object",
|
170 | "plain objects",
|
171 | "plain-object",
|
172 | "plain-objects",
|
173 | "plainObject",
|
174 | "primitive",
|
175 | "primitive-types",
|
176 | "pure",
|
177 | "regex",
|
178 | "regexp",
|
179 | "regular expression",
|
180 | "simple",
|
181 | "string",
|
182 | "sync",
|
183 | "syncFunction",
|
184 | "test",
|
185 | "type",
|
186 | "type-check",
|
187 | "type-checker",
|
188 | "type-checking",
|
189 | "typechecker",
|
190 | "typed",
|
191 | "typeguards",
|
192 | "typeof",
|
193 | "types",
|
194 | "typescript",
|
195 | "undefined",
|
196 | "util",
|
197 | "utility",
|
198 | "validate",
|
199 | "validation",
|
200 | "vanilla",
|
201 | "verify",
|
202 | "weak map",
|
203 | "weak-map",
|
204 | "weakMap",
|
205 | "what-type"
|
206 | ],
|
207 | "badges": {
|
208 | "list": [
|
209 | "githubworkflow",
|
210 | "npmversion",
|
211 | "npmdownloads",
|
212 | "---",
|
213 | "githubsponsors",
|
214 | "thanksdev",
|
215 | "patreon",
|
216 | "liberapay",
|
217 | "buymeacoffee",
|
218 | "opencollective",
|
219 | "crypto",
|
220 | "paypal",
|
221 | "---",
|
222 | "discord",
|
223 | "twitch"
|
224 | ],
|
225 | "config": {
|
226 | "githubWorkflow": "bevry",
|
227 | "githubSponsorsUsername": "balupton",
|
228 | "thanksdevGithubUsername": "bevry",
|
229 | "buymeacoffeeUsername": "balupton",
|
230 | "cryptoURL": "https://bevry.me/crypto",
|
231 | "flattrUsername": "balupton",
|
232 | "liberapayUsername": "bevry",
|
233 | "opencollectiveUsername": "bevry",
|
234 | "patreonUsername": "bevry",
|
235 | "paypalURL": "https://bevry.me/paypal",
|
236 | "wishlistURL": "https://bevry.me/wishlist",
|
237 | "discordServerID": "1147436445783560193",
|
238 | "discordServerInvite": "nQuXddV7VP",
|
239 | "twitchUsername": "balupton",
|
240 | "githubUsername": "bevry",
|
241 | "githubRepository": "typechecker",
|
242 | "githubSlug": "bevry/typechecker",
|
243 | "npmPackageName": "typechecker"
|
244 | }
|
245 | },
|
246 | "author": "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton)",
|
247 | "authors": [
|
248 | "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."
|
249 | ],
|
250 | "maintainers": [
|
251 | "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."
|
252 | ],
|
253 | "contributors": [
|
254 | "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton)",
|
255 | "Joe Gesualdo <joegesualdo@gmail.com> (https://joe.fun) (https://github.com/joegesualdo)",
|
256 | "Matt Bierner (https://mattbierner.com) (https://github.com/mjbvz)",
|
257 | "Sean Fridman <mail@seanfridman.com> (https://seanfridman.com) (https://github.com/sfrdmn)"
|
258 | ],
|
259 | "sponsors": [
|
260 | "Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher",
|
261 | "Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.",
|
262 | "Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.",
|
263 | "Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)",
|
264 | "Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)",
|
265 | "Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.",
|
266 | "Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"
|
267 | ],
|
268 | "donors": [
|
269 | "Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)",
|
270 | "Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)",
|
271 | "Chad (https://opencollective.com/chad8)",
|
272 | "Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov)",
|
273 | "entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)",
|
274 | "Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)",
|
275 | "Michael Duane Mooring (https://bevry.me) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)",
|
276 | "Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)",
|
277 | "Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)",
|
278 | "Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)",
|
279 | "Sentry (https://sentry.io) (https://github.com/getsentry)",
|
280 | "ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)",
|
281 | "Skunk Team (https://skunk.team) (https://github.com/skunkteam)",
|
282 | "Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)"
|
283 | ],
|
284 | "engines": {
|
285 | "node": ">=4"
|
286 | },
|
287 | "editions": [
|
288 | {
|
289 | "description": "TypeScript source code with Import for modules",
|
290 | "directory": "source",
|
291 | "entry": "index.ts",
|
292 | "tags": [
|
293 | "source",
|
294 | "typescript",
|
295 | "import"
|
296 | ],
|
297 | "engines": false
|
298 | },
|
299 | {
|
300 | "description": "TypeScript compiled against ES2022 for web browsers with Import for modules",
|
301 | "directory": "edition-browsers",
|
302 | "entry": "index.js",
|
303 | "tags": [
|
304 | "compiled",
|
305 | "javascript",
|
306 | "import"
|
307 | ],
|
308 | "engines": {
|
309 | "node": false,
|
310 | "browsers": "defaults"
|
311 | }
|
312 | },
|
313 | {
|
314 | "description": "TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
|
315 | "directory": "edition-es2022",
|
316 | "entry": "index.js",
|
317 | "tags": [
|
318 | "compiled",
|
319 | "javascript",
|
320 | "es2022",
|
321 | "require"
|
322 | ],
|
323 | "engines": {
|
324 | "node": "6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21",
|
325 | "browsers": false
|
326 | }
|
327 | },
|
328 | {
|
329 | "description": "TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
|
330 | "directory": "edition-es5",
|
331 | "entry": "index.js",
|
332 | "tags": [
|
333 | "compiled",
|
334 | "javascript",
|
335 | "es5",
|
336 | "require"
|
337 | ],
|
338 | "engines": {
|
339 | "node": "4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21",
|
340 | "browsers": false
|
341 | }
|
342 | },
|
343 | {
|
344 | "description": "TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules",
|
345 | "directory": "edition-es2022-esm",
|
346 | "entry": "index.js",
|
347 | "tags": [
|
348 | "compiled",
|
349 | "javascript",
|
350 | "es2022",
|
351 | "import"
|
352 | ],
|
353 | "engines": {
|
354 | "node": "12 || 14 || 16 || 18 || 20 || 21",
|
355 | "browsers": false
|
356 | }
|
357 | },
|
358 | {
|
359 | "description": "TypeScript compiled Types with Import for modules",
|
360 | "directory": "edition-types",
|
361 | "entry": "index.d.ts",
|
362 | "tags": [
|
363 | "compiled",
|
364 | "types",
|
365 | "import"
|
366 | ],
|
367 | "engines": false
|
368 | },
|
369 | {
|
370 | "description": "TypeScript source code made to be compatible with Deno",
|
371 | "directory": "edition-deno",
|
372 | "entry": "index.ts",
|
373 | "tags": [
|
374 | "typescript",
|
375 | "import",
|
376 | "deno"
|
377 | ],
|
378 | "engines": {
|
379 | "deno": true,
|
380 | "browsers": true
|
381 | }
|
382 | }
|
383 | ],
|
384 | "types": "edition-types/index.d.ts",
|
385 | "type": "module",
|
386 | "main": "index.cjs",
|
387 | "exports": {
|
388 | "node": {
|
389 | "types": "./edition-types/index.d.ts",
|
390 | "import": "./edition-es2022-esm/index.js",
|
391 | "default": "./index.cjs",
|
392 | "require": "./edition-es2022/index.js"
|
393 | },
|
394 | "browser": {
|
395 | "types": "./edition-types/index.d.ts",
|
396 | "import": "./edition-browsers/index.js"
|
397 | }
|
398 | },
|
399 | "deno": "edition-deno/index.ts",
|
400 | "browser": "edition-browsers/index.js",
|
401 | "module": "edition-browsers/index.js",
|
402 | "dependencies": {
|
403 | "editions": "^6.20.0"
|
404 | },
|
405 | "devDependencies": {
|
406 | "@types/node": "^20.10.5",
|
407 | "@typescript-eslint/eslint-plugin": "^6.16.0",
|
408 | "@typescript-eslint/parser": "^6.16.0",
|
409 | "assert-helpers": "^11.11.0",
|
410 | "eslint": "^8.56.0",
|
411 | "eslint-config-bevry": "^5.3.0",
|
412 | "eslint-config-prettier": "^9.1.0",
|
413 | "eslint-plugin-prettier": "^5.1.2",
|
414 | "kava": "^7.5.0",
|
415 | "make-deno-edition": "^2.1.0",
|
416 | "prettier": "^3.1.1",
|
417 | "projectz": "^4.0.0",
|
418 | "typedoc": "^0.25.4",
|
419 | "typescript": "5.3.3",
|
420 | "valid-directory": "^4.7.0",
|
421 | "valid-module": "^2.6.0"
|
422 | },
|
423 | "scripts": {
|
424 | "our:clean": "rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
|
425 | "our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:edition-types",
|
426 | "our:compile:deno": "make-deno-edition --attempt",
|
427 | "our:compile:edition-browsers": "tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )",
|
428 | "our:compile:edition-es2022": "tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json",
|
429 | "our:compile:edition-es2022-esm": "tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json",
|
430 | "our:compile:edition-es5": "tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json",
|
431 | "our:compile:edition-types": "tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )",
|
432 | "our:deploy": "printf '%s\n' 'no need for this project'",
|
433 | "our:meta": "npm run our:meta:docs && npm run our:meta:projectz",
|
434 | "our:meta:docs": "npm run our:meta:docs:typedoc",
|
435 | "our:meta:docs:typedoc": "rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source",
|
436 | "our:meta:projectz": "projectz",
|
437 | "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push",
|
438 | "our:release:check-changelog": "cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)",
|
439 | "our:release:check-dirty": "git diff --exit-code",
|
440 | "our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta",
|
441 | "our:release:push": "git push origin && git push origin --tags",
|
442 | "our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"",
|
443 | "our:setup": "npm run our:setup:install",
|
444 | "our:setup:install": "npm install",
|
445 | "our:test": "npm run our:verify && npm test",
|
446 | "our:verify": "npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier",
|
447 | "our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source",
|
448 | "our:verify:module": "valid-module",
|
449 | "our:verify:prettier": "prettier --write .",
|
450 | "test": "node ./test.cjs"
|
451 | },
|
452 | "eslintConfig": {
|
453 | "extends": [
|
454 | "bevry"
|
455 | ]
|
456 | },
|
457 | "prettier": {
|
458 | "semi": false,
|
459 | "singleQuote": true,
|
460 | "trailingComma": "es5",
|
461 | "endOfLine": "lf"
|
462 | }
|
463 | }
|