User Experience on mobile might not be great yet, but I'm working on it.

Your first time on this page? Allow me to give some explanations.

Awesome Micro npm Packages

A curated list of small, focused npm packages.

Here you can see meta information about this topic like the time we last updated this page, the original creator of the awesome list and a link to the original GitHub repository.

Last Update: Oct. 23, 2021, 6:05 p.m.

Thank you parro-it & contributors
View Topic on GitHub:
parro-it/awesome-micro-npm-packages

Search for resources by name or description.
Simply type in what you are looking for and the results will be filtered on the fly.

Further filter the resources on this page by type (repository/other resource), number of stars on GitHub and time of last commit in months.

Awesome Micro npm Packages

๐Ÿ˜Ž Awesome lists about all kinds of interesting topics

153.57K
19.99K
8m
CC0-1.0

Articles

Array

A small module to check if an Array is sorted

20
28
3y 115d
MIT

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

8
12
5y 9m
MIT

Return the last element in an array. Faster than .slice

30
11
3y 10m
MIT

Recursively flatten an array or arrays. This is the fastest implementation of array flatten.

51
14
4y 112d
MIT

easy deduplication of array values

21
4
1y 8m
MIT

creates a new array with given range

21
6
6y 11m
MIT

Returns an array with only the unique values from all given arrays using strict equality for comparisons.

36
17
4y 54d
MIT

Returns an array filled with the specified input

28
5
9m
MIT

Map object keys and values into an array.

4
0
3y 11m
MIT

Return true if a value exists in an array. Faster than using indexOf and won't blow up on null values.

15
2
5y 7m
MIT

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

114
8
5y 6m
MIT

Swaps the index / position of an array

6
4
5y 6m
MIT

NPM module for creating a keymirror object from an array of strings

4
2
4y 25d
MIT

Group array of objects into lists.

49
14
1y 6m
MIT

Split array/TypedArray to chunks of given size

8
0
5y 6m
n/a

String

Convert a camelized string into a lowercased one with a custom separator: unicornRainbow โ†’ unicorn_rainbow

174
14
9m
MIT

Left pad a string with zeros or a specified string. Fastest implementation.

42
8
4y 7m
MIT

Convert a string to a camel case.

34
3
5y 9m
n/a

Convert a string to a capital case.

12
2
5y 9m
n/a

Convert a string to a constant case.

4
3
5y 9m
n/a

Convert a string to a dot case.

4
1
8m
n/a

Remove an existing case from a string.

15
5
4y 12m
n/a

Convert a string to pascal case.

3
1
5y 9m
n/a

Convert a string to a sentence case.

5
0
5y 9m
n/a

Convert a string to a snake case.

25
3
3y 34d
n/a

Convert a string to a space case.

3
3
5y 9m
n/a

Convert a string to a title case.

17
6
5y 9m
n/a

slugifies even utf-8 chars!

1.08K
96
6y 6m
MIT

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

0
1
11m
MIT

nano library to enhance String.substring / Array.slice with python slice style by Proxy.

27
1
3y 7m
MIT

Strip ANSI escape codes from a string

275
27
10m
MIT

An implementation of PHP's strip_tags in Typescript.

408
51
10m
MIT

Parse next JSON value from string allowing extraneous characters after value

1
0
3y 8m
BSD-3-Clause

Created with CodeSandbox

1
0
7m
n/a

Date & Time

Convert milliseconds to a human readable string: 1337000000 โ†’ 15d 11h 23m 20s

650
57
9m
MIT

thin wrapper around process.hrtime

14
1
1y 40d
MIT
2
1
6y 9m
n/a

Lightweight and simple JS date formatting and parsing

1.9K
133
8m
MIT

Get a time reference using Akamai's time reference service

2
1
2y 9m
MIT

timeago.js is a tiny(2.0 kb) library used to format date with *** time ago statement.

4.34K
385
8m
MIT

Get the number of days in a given month

1
0
5y 90d
MIT

Get a formatted timestamp. Used in gulp, assemble, generate, and many others.

104
17
1y 11m
MIT

๐Ÿ•ฐ Tiny (280B) relative time string function (eg: "3 seconds ago")

210
9
10m
MIT

Object

Map object keys and values into a new object

94
27
9m
MIT

Filter object keys and values into a new object

45
2
9m
MIT

Get the values of an object

20
4
9m
MIT

Object -> [[key0, value0], [key1, value1]...]

2
0
6y 5m
MIT

Returns a map with the keys mapped to the corresponding vals.

4
1
6y 11m
ISC

pluck without the madness

6
1
5y 9m
MIT

node's assert.deepEqual algorithm

571
104
8m
MIT

[DEPRECATED] Recursive Object.assign()

249
35
4y 94d
MIT

Set nested values on an object using dot-notation, like 'a.b.c'.

201
31
1y 6m
MIT

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

192
20
2y 11m
MIT

Returns true if a value exists, false if empty. Works with deeply nested values using object paths.

22
4
3y 7m
MIT

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

1
2
2y 7d
MIT

Flatten object keys

4
1
8y 107d
n/a

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

20
4
4y 90d
MIT

Check if an object is empty.

10
4
6y 35d
MIT

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

235
41
9m
BSD-2-Clause

Returns a copy of an object with its keys sorted

34
5
5y 45d
n/a

defines static object attributes using Object.defineProperties

3
1
2y 5m
MIT

Tells you what keys from first object are missing in second

0
1
1y 8m
n/a

Merge two objects and concatenate arrays that are values of the same object key.

2
1
6y 40d
MIT

Deep diffs two objects, including nested structures of arrays and objects, and returns the difference. โ„๏ธ

505
47
3y 2d
MIT

Function

Function composition

48
3
6y 21d
MIT

simple curry module, with nothing too clever, and full test coverage

311
22
8y 29d
n/a

Run a function exactly one time

195
25
6y 9m
ISC

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

7
2
5y 5m
MIT

module.exports = function (x) { return x }

10
4
5y 10m
n/a

Memoize functions - an optimization technique used to speed up consecutive function calls by caching the result of calls with identical input

906
46
97d
MIT

Throttle and debounce functions.

691
80
11m
n/a

A very tiny and fast compose function.

46
2
1y 4m
MIT

Math

I created this in 2014, when I was learning how to program.

88
4
3y 6m
MIT

JavaScript/Node.js utility. Returns true if the value is a number or string number. Useful for checking regex match results, user input, parsed strings, etc.

174
29
3y 113d
MIT

I created this in 2014, the year I learned how to program. All of the downloads are from an old version of https://github.com/micromatch/micromatch. I've done a few other things since: https://github.com/jonschlinkert.

132
51
2y 6m
MIT

A tiny easy math include addition multiplication subtraction division.

7
1
1y 75d
n/a

Finds prime numbers using the Sieve of Eratosthenes algorithm.

0
0
1y 23d
n/a

Find the Greatest Common Divisor using Euclidean Algorithm

0
0
1y 21d
n/a

Stream

Tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise

1.84K
127
1y 116d
n/a

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

34
4
3y 4m
MIT

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

71
3
4y 11m
MIT

A streams2 Readable stream generator, useful for testing.

16
1
4y 7m
MIT

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

547
60
2y 10m
MIT

rawStream.pipe(JSONStream.parse()).pipe(streamOfObjects)

1.82K
168
3y 11d
n/a

A small promise-based wrapper for through2

3
0
4y 2d
ISC

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

823
52
1y 114d
MIT
339
38
2y 115d
MIT

Check if something is a Node.js stream

94
16
9m
MIT

Transform your data as it pass by, synchronously.

79
12
4y 7m
MIT

Promise

Promisify a callback-style function

1.38K
85
9m
MIT

Like Promise.all but for object properties.

10
2
8m
ISC

Resolves a promise after a specified delay.

60
10
8m
MIT

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

254
36
1y 5m
MIT

Data Structure

๐ŸŽ€ Just the cutest and tiniest queue/deque implementation!

103
2
60d
Apache-2.0

File System

A rm -rf util for nodejs

4.46K
234
1y 8m
ISC

Recursively mkdir, like mkdir -p, but in node.js

2.25K
219
5y 8m
n/a

A simple JavaScript implementation of du -sb

29
9
2y 4m
n/a

๐Ÿ“‚ Lightweight filesize to human-readable / proportions w/o dependencies for node.js & browsers.

223
11
1y 9m
MIT

Temporary file and directory creator for node.js

615
88
1y 5m
MIT

[DEPRECATED] Use mz or fs-extra^3 with Promise support

172
11
4y 5m
MIT

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

2
0
1y 12d
MIT

Browser

Lightweight event delegation

168
30
3y 10m
n/a

insert a string of css into the <head>

231
55
2y 7m
n/a

DOM element value getter/setter.

5
0
4y 10m
MIT

๐ŸŽ‘๐Ÿคž Load one or more images, return a promise. Tiny, browser-only, no dependencies.

128
11
1y 5m
n/a

Get the real size of an <img>, <video>, or <canvas> in the browser.

9
1
2y 93d
MIT

Document ready listener for modern browsers

57
3
12m
MIT

๐Ÿ“„ Copy text from browser to clipboard...natively! < 1kB

109
4
8m
MIT

Semver

The semver parser for node (the one npm uses)

3.83K
381
33d
ISC

Find maximum (or minimum) version according to semver

3
0
6y 98d
MIT

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

2
0
5y 9m
MIT

CLI

Like ruby's Abbrev module

141
33
2y 64d
n/a

glob functionality for node.js

6.8K
436
1y 11m
n/a

Get the username of the current user

132
15
69d
MIT

parse argument options

4.57K
252
1y 7m
n/a

convert png to ico format

85
12
8m
MIT

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

4
0
5y 4m
MIT

Module management

Get namespaced config from the closest package.json

101
12
9m
MIT

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

16
2
1y 7m
MIT

Generators

Check whether a given value is a generator function

14
5
4y 5m
MIT

Other

Generate RFC-compliant UUIDs in JavaScript

10.62K
737
8m
MIT

Mime types for JavaScript

1.62K
284
8m
MIT

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

3
3
8m
MIT

Check if a string represent a fully qualified domain name

17
1
1y 22d
MIT

I'll give you the right URL, but don't call me Shirley!

4
0
1y 95d
n/a

Get MIME type of a file by its extension

2
0
1y 22d
MIT

Related lists

Delightful Node.js packages and resources

40.03K
4.87K
8m
CC0-1.0

Awesome npm resources and tips

3.82K
238
4m
CC0-1.0