Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Lead Maintainer: Oliver Wang
Node utilities shared amongst the extended baiji universe
npm install bue
var biu = require('bue');
bue.isArray([1,2,3]);
// => true
All the functions used in Bue is based on lodash(v4.0.0-pre), some of them have been customized(italic) in the following list.
value
.
bue.clone(value)
value
is classified as an Array
object.
bue.isArrayLike(value)
value
is classified as a boolean primitive or object.
bue.isBoolean(value)
value
is classified as a Date
object.
bue.isDate(value)
value
is empty. A value is considered empty unless it's an arguments
object, array, string, or jQuery-like collection with a length greater than 0
, an object with own enumerable properties or a number.
bue.isEmpty(value)
value
is classified as a Function
object.
bue.isFunction(value)
value
is a valid array-like length.
bue.isLength(value)
value
is null
or undefined
.
bue.isNil(value)
value
is null
.
bue.isNull(value)
value
is null
or undefined
.
bue.isNullOrUndefined(value)
value
is classified as a Number
primitive or object.
bue.isNumber(value)
value
is an integer.
bue.isInteger(value)
value
is the language type of Object
.
bue.isObject(value)
value
is a plain object, that is, an object created by the Object
constructor or one with a [[Prototype]]
of null
.
bue.isPlainObject(value)
value
is not Empty
bue.isPresent(value)
value
is classified as a RegExp
object.
bue.isRegExp(value)
value
is classified as a String
primitive or object.
bue.isString(value)
value
is undefined
.
bue.isUndefined(value)
false
, null
, 0
, ""
, undefined
, and NaN
are falsey.
bue.compact(array)
array
a single level.
bue.flatten(array)
array
.
bue.first(array)
array
.
bue.last(array)
bue.entend(object, [sources])
path
of object
. If the resolved value is undefined
the defaultValue
is used in its place.
bue.get(object, path, [defaultValue])
path
is a direct or inherited property of object
.
bue.hasIn(object, path)
object
.
bue.keys(object)
object
.
bue.keysIn(object)
object
.
bue.values(object)
string
on the left and right sides if it's shorter than length
. Padding characters are truncated if they can't be evenly divided by length
.
bue.pad([string=''], [length=0], [chars=' '])
string
on the left side if it's shorter than length
. Padding characters are truncated if they exceed length
.
bue.padLeft([string=''], [length=0], [chars=' '])
string
on the right side if it's shorter than length
. Padding characters are truncated if they exceed length
.
bue.padRight([string=''], [length=0], [chars=' '])
bue.escapeRegExp([string=''])
bue.iteratee
: a function that a invokesfunc
with the arguments of the created function.
collection
invoking iteratee
for each element. The iteratee is invoked with three arguments: (value, index|key, collection). Iteratee functions may exit iteration early by explicitly returning false
.
bue.each(collection, [iteratee = bue.identity])
bue.each
except that it iterates over elements of collection
from right to left.
bue.eachRight(collection, [iteratee = bue.identity])
collection
through iteratee
. The iteratee is invoked with three arguments: (value, index|key, collection).
bue.map(collection, [iteratee = bue.identity])
array
. If array
is empty or falsey undefined
is returned.
bue.max(array)
array
. If array
is empty or falsey undefined
is returned.
bue.min(array)
assert
module provides a simple set of assertion tests that can be used to test invariants, based on nodejs core module assert
MIT
FAQs
Bue for Baiji(Utils tools)
The npm package bue receives a total of 5 weekly downloads. As such, bue popularity was classified as not popular.
We found that bue 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.