
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
fleck-js is a collection of javascript functions and utilities to help developers code faster, bigger and better apps.
fleck-js is a collection of javascript functions and utilities to help developers code faster, bigger and better apps. It does not have dependencies, it is written entirely in vanilla javascript, so it will not install unnecessary packages and libraries increasing your project's bundle size.
npm install fleck-js
const fleck = require('fleck-js');
console.log(fleck.isArray([1,2,3])); // true
or
import {isArray} from 'fleck-js';
console.log(isArray([1,2,3])); // true
fleck-js focuses on everyday pieces of code developers write over and over again, which we have separated in three different categories:
It determines if the given value is an array or not.
isArray(array, strictMode)
| Parameter | Description |
|---|---|
| array | Required. The value to be tested. |
| strictMode | Optional. Defaults to true. Validation strategy, it determines if an empty array is valid or not. |
isArray([1,2,3]) // true
isArray([]) // false
isArray([1,2,3],false) // true
isArray([],false) // true
isArray('') // false
isArray(123) // false
It determines if the given value is a boolean or not.
isBoolean(boolean, strictMode)
| Parameter | Description |
|---|---|
| boolean | Required. The value to be tested. |
| strictMode | Optional. Defaults to true. Validation strategy, it determines if strings containing 'true' or 'false', uppercase or lowercase are valid or not. |
isBoolean(true) // true
isBoolean(false) // true
isBoolean('true') // false
isBoolean('true',false) // true
isBoolean('TRUE',false) // true
isBoolean(123) // false
It determines if the given value is a number or not.
isNumber(number, strictMode)
| Parameter | Description |
|---|---|
| number | Required. The value to be tested. |
| strictMode | Optional. Defaults to true. Validation strategy, it determines if strings containing numbers are valid or not. |
isNumber(123.45) // true
isNumber('123.45') // false
isNumber(true) // false
isNumber([]) // false
isNumber(new Date()) // false
isNumber('123.45',false) // true
It determines if the given value is a function or not.
isFunction(func)
| Parameter | Description |
|---|---|
| func | Required. The value to be tested. |
isFunction(function(){}) // true
isFunction(() => {}) // true
isFunction(true) // false
isFunction([]) // false
isFunction('() => {}') // false
isFunction('function(){}') // false
It determines if the given value is a object or not.
isObject(object, strictMode)
| Parameter | Description |
|---|---|
| isObject | Required. The value to be tested. |
| strictMode | Optional. Defaults to true. Validation strategy, it determines if an empty object is valid or not. |
isObject({foo:123.45}) // true
isObject({}) // false
isObject({foo:123},false) // true
isObject({},false) // true
isObject("") // false
isObject(123.45) // false
It determines if the given value is an instance of Date or not.
isDate(date)
| Parameter | Description |
|---|---|
| date | Required. The value to be tested. |
isDate(new Date()) // true
isDate("01/01/2000") // false
isDate(123.45) // false
isDate("") // false
isDate([]) // false
isDate(() => {}) // false
It determines if the given value is a string or not.
isString(string, strictMode)
| Parameter | Description |
|---|---|
| string | Required. The value to be tested. |
| strictMode | Optional. Defaults to true. Validation strategy, it determines if an empty string is valid or not. |
isString("foo") // true
isString("") // false
isString("foo",false) // true
isString("",false) // true
isString("123.45") // true
isString(123.45) // false
FAQs
fleck-js is a collection of javascript functions and utilities to help developers code faster, bigger and better apps.
We found that fleck-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.