bit/utils

PublicMIT
9 Likes

General purpose Javascript utility functions delivering modularity and performance.

array

Computes the difference between two array references.

12
MIT
Public
4
30

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

13
MIT
Public
3
7

Returns the first element of an array.

9
MIT
Public
4
8

Wraps a value with an array.

8
MIT
Public
4
5

object

Determines whether the object has the specified property.

6
MIT
Public
3
1

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

6
MIT
Public
2
161

Cleans all object’s properties that contains a falsy value

6
MIT
Public
2
1

get all object values.

8
MIT
Public
1
211

Merges multiple objects into one

8
MIT
Public
2
8.2K

merge an array of objects

7
MIT
Public
1
14

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

9
MIT
Public
2
5

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

8
MIT
Public
3
12

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

8
MIT
Public
1
61

global

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

7
MIT
Public
2
55

determiens whether val is a number.

7
MIT
Public
1
32

detemines whether str is a string.

11
MIT
Public
1
87

encrypt data buffer or string into a sha1 hash

9
MIT
Public
1
3.2K

determines whether val reference is null or undefined.

6
MIT
Public
1
124

pad a string to the left.

8
MIT
Public
1
5

string

determines whether string str ref contains substring searchRef.

7
MIT
Public
1
3.8K

cleans the first occurence of char from str reference.

6
MIT
Public
1
4

encode a string or a buffer to base64

7
MIT
Public
1
4.9K

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

7
MIT
Public
1
3

decode a string from base64

7
MIT
Public
1
3

validator

simple email validator

7
MIT
Public
1
23

redis

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

6
MIT
Public
2
9

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

6
MIT
Public
1
68

buffer

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

7
MIT
Public
16
11

bit

an ssh client for consuming bit components from a remote scope

7
MIT
Public
1
4

ssh

7
MIT
Public
1
14

function

compose functions into one function from right to left

7
MIT
Public
1
30

compose functions from left to right

7
MIT
Public
1
7

kubernetes

Convert bit id to acceptable kubernetes job name

7
MIT
Public
1
13

number

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

7
MIT
Public
2
33.9K