Gathering detailed insights and metrics for is2
Gathering detailed insights and metrics for is2
Gathering detailed insights and metrics for is2
Gathering detailed insights and metrics for is2
A type-checking module for node.js to test values and types. Does not throw exceptions.
npm install is2
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
10 Stars
112 Commits
4 Forks
2 Watching
3 Branches
4 Contributors
Updated on 08 Sept 2022
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-2.1%
231,079
Compared to previous day
Last week
4.9%
1,298,532
Compared to previous week
Last month
5.3%
5,416,179
Compared to previous month
Last year
-0.8%
60,300,958
Compared to previous year
is2 is a type-checking module for JavaScript to test values. Is does not throw exceptions and every function only returns true or false. Use is2 to validate types in your node.js code. Every function in is2 returns either true of false.
To install is2, type:
$ npm install is2
const is = require('is2');
console.log(`1===1 is: ${is.equal(true, 1===1)}`);
console.log(`10 is a positive number: ${is.positiveNumber(10)}`);
console.log(`11 is an odd number: ${is.oddNumber(11)}`);
Each function returns true or false. The names after the '-' are aliases, which provide brevity.
Environment:
Types:
Relationships:
Object State:
Numeric Types within Number:
Numeric Type and State:
Numeric Relationship:
Networking:
Credit Cards:
Personal information:
The MIT License (MIT)
Copyright (c) 2013,2014 Edmond Meinfelder Copyright (c) 2011 Enrico Marino
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
4 existing vulnerabilities detected
Details
Reason
Found 4/20 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
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