
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
@codevor/js-is-type
Advanced tools
Type-check for 'Primitive' types in JavaScript are always something to take care when receiving/sending a payload from/to Server/Client application. If you ever wonder how to do this you can sure use typeof
and make the check by yourself. Or you can user 🎯js-is-type
!
The usage is simple and verbose. The tests has full coverage and you can use without a doubt.
isArray()
isBoolean()
isFunction()
isObject()
(Remember: in JS, Arrays are Objects!)isString()
isUndefined()
js-is-type
is available on npm/yarn:
$ npm install @codevor/js-is-type --save
$ yarn add @codevor/js-is-type
import { isArray } from '@codevor/js-is-type';
const names = ['Alice', 'Bob'];
isArray(names); // => true
const isArray = require('@codevor/js-is-type').isArray;
const names = ['Alice', 'Bob'];
isArray(names); // => true
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project adheres to Semantic Versioning. Every release, along with the migration instructions, is documented on the Github Releases page.
Report bugs or do suggestions using the issues.
FAQs
🎯Type-checking for 'Primitive' JS Types made easy!
The npm package @codevor/js-is-type receives a total of 10 weekly downloads. As such, @codevor/js-is-type popularity was classified as not popular.
We found that @codevor/js-is-type demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.