Gathering detailed insights and metrics for typechecker
Gathering detailed insights and metrics for typechecker
Gathering detailed insights and metrics for typechecker
Gathering detailed insights and metrics for typechecker
Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)
npm install typechecker
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.3
Supply Chain
100
Quality
76.2
Maintenance
100
Vulnerability
100
License
TypeScript (84.5%)
JavaScript (15.5%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
49 Stars
353 Commits
6 Forks
4 Watchers
3 Branches
6 Contributors
Updated on Oct 12, 2024
Minified
Minified + Gzipped
Latest Version
9.3.0
Package Id
typechecker@9.3.0
Unpacked Size
103.25 kB
Size
17.65 kB
File Count
18
NPM Version
10.2.3
Node Version
20.10.0
Published on
Dec 27, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)
Why should I use this instead of say instanceof
?
Under certain circumstances instanceof
may not return the correct results. This occurs with node's vm module especially, and circumstances where an object's prototype has been dereferenced from the original. As such, for basic ==
and ===
checks (like a === null
), you're fine not using this, but for checks when you would have done instanceof
(like err instanceof Error
), you should try to use this instead. Plus things like isPlainObject
are darn useful!
npm install --save typechecker
import * as pkg from ('typechecker')
const pkg = require('typechecker')
1import * as pkg from 'https://unpkg.com/typechecker@^9.3.0/edition-deno/index.ts'
1<script type="module"> 2 import * as pkg from '//cdn.skypack.dev/typechecker@^9.3.0' 3</script>
1<script type="module"> 2 import * as pkg from '//unpkg.com/typechecker@^9.3.0' 3</script>
1<script type="module"> 2 import * as pkg from '//dev.jspm.io/typechecker@9.3.0' 3</script>
This package is published with the following editions:
typechecker
aliases typechecker/index.cjs
which uses the Editions Autoloader to automatically select the correct edition for the consumer's environmenttypechecker/source/index.ts
is TypeScript source code with Import for modulestypechecker/edition-browsers/index.js
is TypeScript compiled against ES2022 for web browsers with Import for modulestypechecker/edition-es2022/index.js
is TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modulestypechecker/edition-es5/index.js
is TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modulestypechecker/edition-es2022-esm/index.js
is TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modulestypechecker/edition-types/index.d.ts
is TypeScript compiled Types with Import for modulestypechecker/edition-deno/index.ts
is TypeScript source code made to be compatible with DenoDiscover the release history by heading on over to the HISTORY.md
file.
Discover how to contribute via the CONTRIBUTING.md
file.
Unless stated otherwise all works are:
and licensed under:
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
4 existing vulnerabilities detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 1
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/18 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More