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: Dec. 1, 2020, 12:01 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

147.36K
19.29K
3d
CC0-1.0

Articles

Array

A small module to check if an Array is sorted

20
27
2y 5m
MIT

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

8
11
4y 10m
MIT

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

30
12
3y 2d
MIT

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

49
13
3y 5m
MIT

easy deduplication of array values

21
4
9m
MIT

creates a new array with given range

21
6
6y 24d
MIT

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

34
15
3y 92d
MIT

Returns an array filled with the specified input

28
4
4y 7m
MIT

Map object keys and values into an array.

4
0
3y 4d
MIT

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

15
2
4y 8m
MIT

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

114
8
4y 8m
MIT

Swaps the index / position of an array

6
4
4y 7m
MIT

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

4
2
3y 63d
MIT

Group array of objects into lists.

48
14
8m
MIT

Split array/TypedArray to chunks of given size

8
0
4y 8m
n/a

String

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

169
14
10m
MIT

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

40
7
3y 8m
MIT

Convert a string to a camel case.

33
3
4y 10m
n/a

Convert a string to a capital case.

12
2
4y 10m
n/a

Convert a string to a constant case.

4
3
4y 10m
n/a

Convert a string to a dot case.

4
0
4y 10m
n/a

Remove an existing case from a string.

15
5
4y 37d
n/a

Convert a string to pascal case.

3
1
4y 10m
n/a

Convert a string to a sentence case.

5
0
4y 10m
n/a

Convert a string to a snake case.

25
3
2y 72d
n/a

Convert a string to a space case.

3
3
4y 10m
n/a

Convert a string to a title case.

17
6
4y 10m
n/a

slugifies even utf-8 chars!

1.08K
95
5y 7m
MIT

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

0
1
6d
MIT

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

26
1
2y 8m
MIT

Strip ANSI escape codes from a string

268
24
11d
MIT

An implementation of PHP's strip_tags in Javascript.

401
52
1d
MIT

Parse next JSON value from string allowing extraneous characters after value

1
0
2y 9m
BSD-3-Clause

Date & Time

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

564
47
68d
MIT

thin wrapper around process.hrtime

11
1
78d
MIT
2
1
5y 10m
n/a

Lightweight and simple JS date formatting and parsing

1.88K
130
9m
MIT

Get a time reference using Akamai's time reference service

2
1
1y 10m
MIT

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

4.28K
377
84d
MIT

Get the number of days in a given month

1
0
4y 4m
MIT

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

104
17
1y 9d
MIT

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

200
9
10m
MIT

Object

Map object keys and values into a new object

89
24
1y 5m
MIT

Filter object keys and values into a new object

43
2
58d
MIT

Get the values of an object

20
3
2y 8m
MIT

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

2
0
5y 6m
MIT

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

4
1
6y 7d
ISC

pluck without the madness

6
1
4y 10m
MIT

node's assert.deepEqual algorithm

557
102
60d
MIT

[DEPRECATED] Recursive Object.assign()

249
36
3y 4m
MIT

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

193
26
8m
MIT

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

183
18
2y 15d
MIT

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

21
4
2y 9m
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
1y 45d
MIT

Flatten object keys

4
1
7y 4m
n/a

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

19
4
3y 4m
MIT

Check if an object is empty.

10
4
5y 73d
MIT

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

234
40
1y 83d
BSD-2-Clause

Returns a copy of an object with its keys sorted

34
5
4y 83d
n/a

defines static object attributes using Object.defineProperties

3
1
1y 6m
MIT

Tells you what keys from first object are missing in second

0
1
9m
n/a

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

2
1
5y 78d
MIT

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

483
44
2y 40d
MIT

Function

Function composition

48
3
5y 59d
MIT

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

313
22
7y 67d
n/a

Run a function exactly one time

184
23
5y 10m
ISC

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

7
2
4y 7m
MIT

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

10
4
5y 2d
n/a

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

704
36
52d
MIT

Throttle and debounce functions.

658
78
29d
n/a

A very tiny and fast compose function.

46
2
6m
MIT

Math

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

88
4
2y 8m
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.

169
30
2y 5m
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
1y 7m
MIT

A tiny easy math include addition multiplication subtraction division.

6
1
113d
n/a

Finds prime numbers using the Sieve of Eratosthenes algorithm.

0
0
61d
n/a

Find the Greatest Common Divisor using Euclidean Algorithm

0
0
59d
n/a

Stream

Tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise

1.77K
124
5m
n/a

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

33
4
2y 5m
MIT

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

71
3
4y 27d
MIT

A streams2 Readable stream generator, useful for testing.

16
1
3y 8m
MIT

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

543
59
1y 11m
MIT

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

1.76K
163
2y 49d
n/a

A small promise-based wrapper for through2

3
0
3y 40d
ISC

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

803
50
5m
MIT
339
38
1y 5m
MIT

Check if something is a Node.js stream

88
15
4m
MIT

Transform your data as it pass by, synchronously.

79
12
3y 8m
MIT

Promise

Promisify a callback-style function

1.33K
84
6m
MIT

Like Promise.all but for object properties.

10
2
42d
ISC

Resolves a promise after a specified delay.

60
10
2d
MIT

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

252
31
7m
MIT

File System

A rm -rf util for nodejs

4.03K
226
9m
ISC

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

2.24K
216
4y 10m
n/a

A simple JavaScript implementation of du -sb

29
9
1y 5m
n/a

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

221
10
10m
MIT

Temporary file and directory creator for node.js

604
87
7m
MIT

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

172
11
3y 7m
MIT

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

2
0
50d
MIT

Browser

Lightweight event delegation

161
29
2y 12m
n/a

insert a string of css into the

227
54
1y 8m
n/a

DOM element value getter/setter.

4
0
3y 11m
MIT

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

126
11
6m
n/a

Get the real size of an ,

9
1
1y 4m
MIT

Document ready listener for modern browsers

57
3
33d
MIT

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

105
5
61d
MIT

Semver

The semver parser for node (the one npm uses)

3.46K
352
6m
ISC

Find maximum (or minimum) version according to semver

3
0
5y 4m
MIT

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

2
0
4y 10m
MIT

CLI

Like ruby's Abbrev module

142
31
1y 102d
n/a

glob functionality for node.js

6.67K
424
1y 26d
n/a

Get the username of the current user

119
13
5m
MIT

parse argument options

4.45K
249
8m
n/a

convert png to ico format

81
10
53d
MIT

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

4
0
4y 5m
MIT

Module management

Get namespaced config from the closest package.json

98
11
1y 6m
MIT

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

16
2
9m
MIT

Generators

Check whether a given value is a generator function

14
5
3y 7m
MIT

Other

Generate RFC-compliant UUIDs in JavaScript

10.21K
704
10d
MIT

Mime types for JavaScript

1.59K
280
6m
MIT

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

3
3
43d
MIT

Check if a string represent a fully qualified domain name

13
1
60d
MIT

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

3
0
4m
n/a

Get MIME type of a file by its extension

2
0
60d
MIT

Related lists

Delightful Node.js packages and resources

38.93K
4.74K
7d
CC0-1.0

Awesome npm resources and tips

3.67K
226
63d
CC0-1.0