Gathering detailed insights and metrics for validate.io-negative-zero
Gathering detailed insights and metrics for validate.io-negative-zero
Gathering detailed insights and metrics for validate.io-negative-zero
Gathering detailed insights and metrics for validate.io-negative-zero
npm install validate.io-negative-zero
Typescript
Module System
Node Version
NPM Version
Makefile (55.77%)
JavaScript (44.23%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
3 Commits
1 Watchers
1 Branches
2 Contributors
Updated on Jul 13, 2015
Latest Version
1.0.0
Package Id
validate.io-negative-zero@1.0.0
Size
2.33 kB
NPM Version
2.8.3
Node Version
0.12.7
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
Validates if a value is negative zero.
1$ npm install validate.io-negative-zero
For use in the browser, use browserify.
1var isNegativeZero = require( 'validate.io-negative-zero' );
Validates if a value
is negative zero.
1var value = -0; 2 3var bool = isNegativeZero( value ); 4// returns true
1var isNegativeZero = require( 'validate.io-negative-zero' ); 2 3console.log( isNegativeZero( -0 ) ); 4// returns true 5 6console.log( isNegativeZero( 0 ) ); 7// returns false 8 9console.log( isNegativeZero( '' ) ); 10// returns false 11 12console.log( isNegativeZero( null ) ); 13// returns false
To run the example code from the top-level application directory,
1$ node ./examples/index.js
Unit tests use the Mocha test framework with Chai assertions. To run the tests, execute the following command in the top-level application directory:
1$ make test
All new feature development should have corresponding unit tests to validate correct functionality.
This repository uses Istanbul as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:
1$ make test-cov
Istanbul creates a ./reports/coverage
directory. To access an HTML version of the report,
1$ make view-cov
Copyright © 2015. Athan Reines.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/3 approved changesets -- 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
Score
Last Scanned on 2025-07-07
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