Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
JavaScript basic 'is' functions for Node.
npm i tm-is
Module provides a bunch of functions which return true or false. All functions support zero or more arguments. If several arguments passed, all of them should meet function conditions. Conditions for each function described in the Functions section.
E.g.
isObject({}); // true
isObject({}, {}); // true
isObject({}, 'str'); // false, since not all arguments are objects.
isEmpty
: Returns true if passed argument is null, empty string or undefined.isObject
/isObj
: Returns true if passed argument is an object except null.isFunction
/isFunc
: Returns true if passed argument is a function.isUndefined
/isUndef
: Returns true if passed argument is undefined.isEqualArrays
/isEqArr
: Returns true if passed arguments are equal arrays.isValidDate
/isDate
: Returns true if passed arguments are valid date string or number.const { isObject, isFunction } = require('tm-is');
console.log(isObject({})); // true
console.log(isObject(null)); // false
console.log(isObject('string')); // false
console.log(isFunction('null')); // false
console.log(isFunction('string')); // false
console.log(isFunction(() => { })); // true
console.log(isValidDate(null)); // false
console.log(isValidDate('qwertyuiop')); // false
console.log(isValidDate('2024-12-27')); // true
FAQs
JavaScript basic 'is' functions.
The npm package tm-is receives a total of 12 weekly downloads. As such, tm-is popularity was classified as not popular.
We found that tm-is demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.