Micro npm Packages

140 resources3 categoriesView Original

Modules(130 items)

A

abbrev

Calculate the set of unique abbreviations for a given set of strings.

Modules
A

akamai-time-reference

Get reference time using Akamai's time reference service.

Modules
A

arr-diff

Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.

Modules
A

arr-flatten

Recursively flatten an array or arrays.

Modules
A

array-first

Get the first element or first n elements of an array.

Modules
A

array-last

Return the last element in an array.

Modules
A

array-range

Creates a new array with given range.

Modules
A

array-swap

Swap position of two items in an array.

Modules
A

array.chunk

Split array/TypedArray to chunks of given size.

Modules
C

compose-function

Compose a new function from smaller functions `f(g(x))`.

Modules
C

compose-tiny

A very tiny and fast compose function.

Modules
C

concat-stream

writable stream that concatenates strings or data and calls a callback with the result.

Modules
C

copee

Copy text from browser to clipboard...natively!

Modules
C

count-days-in-month

Get the number of days in a given month.

Modules
C

curry

A curry function without anything too clever.

Modules
D

decamelize

Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow.

Modules
D

dedupe

Remove duplicates from an array.

Modules
D

deep-assign

Recursive Object.assign().

Modules
D

deep-bind

Bind a context to all functions in an object, including deeply nested functions.

Modules
D

deep-equal

Node's assert.deepEqual() algorithm as a standalone module.

Modules
D

deep-object-diff

Deep diff two JavaScript Objects while preserving the data structure. Including nested structures of Arrays and Objects.

Modules
D

delegate

Lightweight event delegation.

Modules
D

document-ready

Document ready listener for modern browsers.

Modules
D

dom-element-value

DOM element value getter/setter.

Modules
D

du

A simple JavaScript implementation of du -sb.

Modules
E

easy-math.js

A tiny easy math library including addition, multiplication, subtraction, and division.

Modules
F

fast-cartesian

Fast cartesian product.

Modules
F

fecha

Javascript Date formatting and parsing.

Modules
F

file-size

Lightweight filesize to human-readable / proportions w/o dependencies.

Modules
F

filled-array

Returns an array filled with the specified input

Modules
F

filter-obj

Filter object keys and values into a new object.

Modules
F

flatkeys

Flatten object key hierarchies into a list of strings using a custom separator.

Modules
F

flatten-obj

Converts an object literal with deeply nested nodes to a simple key/value object.

Modules
F

fs-promise

Node fs methods as Promise/A+ (optional fs-extra, graceful-fs).

Modules
F

fun-gcd

A tiny math library to get gcd of two numbers using Euclidean algorithm

Modules
G

get-media-size

Get the original size of any `img`/`video`/`svg`/`canvas` tags or canvas context.

Modules
G

get-value

Use property paths (a.b.c) to get a nested value from an object.

Modules
G

glob

Glob functionality for node.js.

Modules
G

group-array

Group array of objects into lists.

Modules
H

has-key-deep

Deep-search objects for keys. Keys can be searched by providing an array of keys, or using a dot-notiation.

Modules
H

has-own-property

Check if an object has a local property.

Modules
H

has-value

Returns true if a value exists, false if empty. Works with deeply nested values using dot notation (`'a.b.c'`) paths.

Modules
H

help-version

Easily handle --help and --version arguments in your CLI application

Modules
H

hirestime

A wrapper around the built-in high resolution timer which simplifies the calculation of timestamps.

Modules
I

identity-function

Always return the input argument.

Modules
I

image-promise

Load one or more ``s in a Promise.

Modules
I

in-array

Return true if any of passed values exists in array - faster than using indexOf.

Modules
I

insert-css

Insert a string of css into the head

Modules
I

is-empty-object

Check if an object is empty.

Modules
I

is-even

A good way to tell if a number is even or not (avoids type issues). Uses `is-odd` and `is-number` under the hood.

Modules
I

is-fqdn

Check if a string represent a fully qualified domain name.

Modules
I

is-generator

Check whether a given value is a generator function.

Modules
I

is-number

Returns `true` if the value is a number.

Modules
I

is-odd

A good way to tell if a number is odd or not (avoids type issues). Uses `is-number` under the hood.

Modules
I

is-promise

Test whether an object looks like a promises-a+ promise.

Modules
I

is-sorted

A small module to check if an Array is sorted.

Modules
I

is-stream

Check if something is a Node.js stream.

Modules
J

JSONStream

streaming JSON.parse and stringify

Modules
J

just-pluck

Pluck without the madness.

Modules
M

map-array

Map object keys and values into an array.

Modules
M

map-obj

Map object keys and values into a new object.

Modules
M

mem

An optimization technique used to speed up consecutive function calls by caching the result of calls with identical input.

Modules
M

merge-objects

Deep-merge two objects. Arrays that are values of the same object key get concatenated.

Modules
M

mime-type-check

Get the MIME type of a file by its extension.

Modules
M

minimist

Parse argument options.

Modules
M

mirrarray

Creates a keymirror object from an array of valid keys.

Modules
M

missing-deep-keys

Returns an array of keys from first object that are missing in second.

Modules
M

mkdirp

Recursively mkdir, like mkdir -p.

Modules
M

my-prime

A good way to tell if a number is prime or not.

Modules
N

nanoid

A tiny (130 bytes), secure, URL-friendly, unique string ID generator for JavaScript

Modules
N

node-mime

Comprehensive MIME type mapping API based on mime-db module.

Modules
N

node-slug

slugifies even utf-8 chars.

Modules
N

normalize-pkg

Normalize values in package.json to improve compatibility, programmatic readability and usefulness with third party libs.

Modules
N

not-defined

Checks if foo is not defined, i.e. undefined, null, an empty string, array or object.

Modules
N

npm-deprecated-check

Check for deprecated packages and recommend alternative packages.

Modules
O

object-pairs

Turn an object into list of [key, value] pairs for mapping, iterating or other purposes.

Modules
O

object-values

Get the values of an object.

Modules
O

once

Run a function exactly one time.

Modules
P

pad-left

Left pad a string with zeros or a specified string.

Modules
P

parse-next-json-value

Parse next JSON value from string allowing extraneous characters after value.

Modules
P

periods

Defined time-periods constants for Javascript, in milliseconds.

Modules
P

pify

Promisify a callback-style function.

Modules
P

pkg-conf

Get namespaced config from the closest package.json.

Modules
P

pluralize

A very tiny library to pluralize words

Modules
P

png-to-ico

Convert png to windows ico format.

Modules
P

pretty-ms

Convert milliseconds to a human readable string: 1337000000 → 15d 11h 23m 20s.

Modules
P

promise-all-props

Like `Promise.all` but for object properties.

Modules
P

pump

pipe streams together and close all of them if one of them closes.

Modules
Q

quetie

Just the cutest and tiniest queue/deque implementation!

Modules
R

read-git-user

Reads the username and email from `.gitconfig` :wrench: and returns it as json object.

Modules
R

rimraf

A deep deletion module for node (like rm -rf).

Modules
R

rtrim

Strip whitespace - or other characters - from the end of a string.

Modules
S

semver

The semantic version parser used by npm.

Modules
S

semver-first-satisfied

Find minimum in an array of version that satisfies a semver range.

Modules
S

semver-max

Find maximum (or minimum) version according to semver.

Modules
S

set-value

Create nested values and any intermediaries dot notation (`'a.b.c'`) paths.

Modules
S

shurley

Parses URLs from user input (with potential typos in protocols, bad copy+paste, etc.) and returns a proper URL.

Modules
S

sleep-promise

Resolves a promise after a specified delay.

Modules
S

slice.js

Javascript library to enhance String.substring / Array.slice with python slice style.

Modules
S

sorted-object

Returns a copy of an object with its keys sorted.

Modules
S

split

Break up a stream and reassemble it so that each line is a chunk.

Modules
S

static-props

Defines static object attributes using `Object.defineProperties`

Modules
S

stream-spigot

A readable stream generator, useful for testing or converting simple functions into Readable streams.

Modules
S

stringify-object

Stringify an object/array like JSON.stringify just without all the double-quotes.

Modules
S

strip-ansi

Strip ANSI escape codes.

Modules
S

striptags

An implementation of PHP's strip_tags in Node.js.

Modules
S

syncthrough

Transform your data as it pass by, synchronously.

Modules
T

throttle-debounce

Throttle/debounce your functions.

Modules
T

through2

Tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise.

Modules
T

through2-filter

A through2 to create an Array.prototype.filter analog for streams.

Modules
T

through2-map

A through2 to create an Array.prototype.map analog for streams.

Modules
T

through2-map-promise

A small promise-based wrapper for through2.

Modules
T

time-stamp

Get a formatted timestamp.

Modules
T

timeago.js

A tiny(~1.7kb) library used to format date with `*** time ago` statement.

Modules
T

tmp

Temporary file and directory creator for node.js.

Modules
T

to-camel-case

Convert a string to a camel case.

Modules
T

to-capital-case

Convert a string to a capital case.

Modules
T

to-constant-case

Convert a string to a constant case.

Modules
T

to-dot-case

Convert a string to a dot case.

Modules
T

to-no-case

Remove an existing case from a string.

Modules
T

to-pascal-case

Convert a string to a pascal case.

Modules
T

to-sentence-case

Convert a string to a sentence case.

Modules
T

to-snake-case

Convert a string to a snake case.

Modules
T

to-space-case

Convert a string to a space case.

Modules
T

to-title-case

Convert a string to a title case.

Modules
T

twas

Generate a relative time string (Example: "3 seconds ago")

Modules
U

unordered-array-remove

Efficiently remove an element from an unordered array without doing a splice.

Modules
U

username

Get the username of the current user.

Modules
U

uuid

Generate RFC-compliant UUIDs in JavaScript.

Modules
Z

zipmap

Returns a map with the keys mapped to the corresponding vals. zipmap also accepts a single value of objects or pairs.

Modules