bit/utils

PublicMIT
2 Likes

The toolkit for the JS developer: General purpose Javascript utility functions delivering modularity and performance.

array

Computes the difference between two array references.


3
01

Returns the first element of an array.


3
01

Builds a new collection by applying a function to all elements of


3
01

Wraps a value with an array.


4
01

bit

an ssh client for consuming bit components from a remote scope


3
01

buffer

A ponyfill for Buffer.from, uses native implementation if available.


3
01

cryptography

encrypt data buffer or string into a sha1 hash


3
01

function

compose functions into one function from right to left


4
01

compose functions from left to right


3
01

kubernetes

Convert bit id to acceptable kubernetes job name


3
61

number

Returns a number whose value is limited to the given range.


3
11

object

Cleans all object’s properties that contains a falsy value


3
01

Creates a new object by recursively evolving a shallow copy of object,


3
01

Invoke a function for every key within given object or array.


3
01

Creates an object composed of keys generated from the results of running


3
01

Determines whether the object has the specified property.


3
01

Returns the results of applying the iteratee to each element of the object.


3
01

Merges multiple objects into one


3
01

merge an array of objects


3
01

get all object values.


4
01

redis

Returns a Promise resolved with the values associated with the specified fields in the hash stored at key.


3
01

Returns a Promise resolved with the values associated with the specified fields in the hash stored at key.


3
01

ssh

string

cleans the first occurence of char from str reference.


3
01

determines whether string str ref contains substring searchRef.


4
21

decode a string from base64


3
01

pad a string to the left.


3
01

remove all new lines from a string (do not mutate the string but return new instance)


3
11

encode a string or a buffer to base64


3
01

validation

determines whether obj reference is empty (empty array, empty object and/or falsy values)


3
01

simple email validator


4
01

determines whether val reference is null or undefined.


3
01

determiens whether val is a number.


3
01

detemines whether str is a string.


3
01