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. 4, 2021, 11:05 a.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

178.58K
22.17K
8d
CC0-1.0

Articles

Array

A small module to check if an Array is sorted

21
29
3y 5m
MIT

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

9
11
5y 10m
MIT

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

30
13
4y 5d
MIT

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

53
13
4y 5m
MIT

easy deduplication of array values

21
3
1y 9m
MIT

creates a new array with given range

22
5
7y 27d
MIT

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

37
16
4y 95d
MIT

Returns an array filled with the specified input

31
6
7m
MIT

Map object keys and values into an array.

4
0
4y 7d
MIT

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

16
2
5y 8m
MIT

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

113
8
5y 8m
MIT

Swaps the index / position of an array

6
4
5y 7m
MIT

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

4
2
4y 66d
MIT

Group array of objects into lists.

53
14
1y 8m
MIT

Split array/TypedArray to chunks of given size

9
0
5y 8m
n/a

String

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

204
21
64d
MIT

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

43
8
4y 8m
MIT

Convert a string to a camel case.

34
3
5y 10m
n/a

Convert a string to a capital case.

12
2
5y 10m
n/a

Convert a string to a constant case.

4
3
5y 10m
n/a

Convert a string to a dot case.

4
1
10m
n/a

Remove an existing case from a string.

15
5
5y 40d
n/a

Convert a string to pascal case.

3
0
5y 10m
n/a

Convert a string to a sentence case.

6
0
5y 10m
n/a

Convert a string to a snake case.

25
4
3y 75d
n/a

Convert a string to a space case.

5
3
5y 10m
n/a

Convert a string to a title case.

17
6
5y 10m
n/a

slugifies even utf-8 chars!

1.09K
94
6y 7m
MIT

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

0
1
1y 9d
MIT

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

34
2
3y 9m
MIT

Strip ANSI escape codes from a string

313
30
84d
MIT

An implementation of PHP's strip_tags in Typescript.

454
49
5m
MIT

Parse next JSON value from string allowing extraneous characters after value

1
0
3y 9m
BSD-3-Clause

Created with CodeSandbox

1
0
8m
n/a

Date & Time

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

665
57
11m
MIT

thin wrapper around process.hrtime

14
2
1y 81d
MIT
1
0
6y 10m
n/a

Lightweight and simple JS date formatting and parsing

1.95K
134
43d
MIT

Get a time reference using Akamai's time reference service

2
1
2y 11m
MIT

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

4.65K
389
9m
MIT

Get the number of days in a given month

1
0
5y 4m
MIT

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

110
17
2y 12d
MIT

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

221
9
1y 3d
MIT

Object

Map object keys and values into a new object

120
33
47d
MIT

Filter object keys and values into a new object

54
3
100d
MIT

Get the values of an object

21
5
61d
MIT

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

2
0
6y 6m
MIT

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

4
1
7y 10d
ISC

pluck without the madness

11
2
5y 10m
MIT

node's assert.deepEqual algorithm

659
106
52d
MIT

[DEPRECATED] Recursive Object.assign()

251
35
4y 4m
MIT

Set nested properties on an object using dot-notation.

234
41
83d
MIT

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

207
21
3y 18d
MIT

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

24
6
3y 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
2y 48d
MIT

Flatten object keys

3
1
8y 4m
n/a

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

20
4
4y 4m
MIT

Check if an object is empty.

11
4
6y 76d
MIT

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

252
43
104d
BSD-2-Clause

Returns a copy of an object with its keys sorted

34
4
5y 86d
n/a

defines static object attributes using Object.defineProperties

3
1
2y 6m
MIT

Tells you what keys from first object are missing in second

0
1
1y 9m
n/a

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

2
1
6y 81d
MIT

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

682
58
3y 43d
MIT

Function

Function composition

51
3
6y 62d
MIT

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

313
22
8y 70d
n/a

Run a function exactly one time

203
23
6y 10m
ISC

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

8
2
5y 7m
MIT

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

10
4
6y 5d
n/a

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

917
46
4m
MIT

Throttle and debounce functions.

782
91
1y 32d
n/a

A very tiny and fast compose function.

46
2
1y 6m
MIT

Math

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

151
10
3y 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.

197
39
3y 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.

197
73
3y 6m
MIT

A tiny easy math include addition multiplication subtraction division.

7
2
1y 116d
n/a

Finds prime numbers using the Sieve of Eratosthenes algorithm.

1
0
1y 62d
n/a

Find the Greatest Common Divisor using Euclidean Algorithm

0
0
1y 62d
n/a

Stream

Tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise

1.85K
124
1y 5m
n/a

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

35
4
3y 5m
MIT

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

70
3
5y 30d
MIT

A streams2 Readable stream generator, useful for testing.

16
1
4y 8m
MIT

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

556
64
2y 11m
MIT

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

1.83K
168
3y 52d
n/a

A small promise-based wrapper for through2

3
0
4y 43d
ISC

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

855
51
1y 5m
MIT
341
39
4y 90d
MIT

Check if something is a Node.js stream

99
18
116d
MIT

Transform your data as it pass by, synchronously.

78
12
4y 8m
MIT

Promise

Promisify a callback-style function

1.39K
85
11m
MIT

Like Promise.all but for object properties.

10
2
18d
ISC

Resolves a promise after a specified delay.

67
10
3d
MIT

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

268
34
1y 7m
MIT

Data Structure

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

105
2
101d
Apache-2.0

File System

A rm -rf util for nodejs

4.51K
235
1y 9m
ISC

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

2.27K
221
5y 10m
n/a

A simple JavaScript implementation of du -sb

28
9
2y 5m
n/a

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

227
11
1y 10m
MIT

Temporary file and directory creator for node.js

655
92
4m
MIT

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

171
11
4y 7m
MIT

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

2
1
1y 13d
MIT

Browser

Lightweight event delegation

172
31
4y 0d
n/a

insert a string of css into the <head>

240
57
2y 8m
n/a

DOM element value getter/setter.

6
0
4y 11m
MIT

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

135
12
8m
n/a

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

10
1
2y 4m
MIT

Document ready listener for modern browsers

58
3
1y 36d
MIT

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

119
4
2d
MIT

Semver

The semver parser for node (the one npm uses)

3.92K
391
26d
ISC

Find maximum (or minimum) version according to semver

3
0
6y 4m
MIT

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

2
0
5y 10m
MIT

CLI

Like ruby's Abbrev module

147
34
2y 105d
n/a

glob functionality for node.js

7.26K
458
73d
n/a

Get the username of the current user

132
15
110d
MIT

parse argument options

4.96K
265
1y 8m
n/a

convert png to ico format

101
12
36d
MIT

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

4
0
5y 5m
MIT

Module management

Get namespaced config from the closest package.json

110
13
93d
MIT

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

18
2
1y 9m
MIT

Generators

Check whether a given value is a generator function

14
5
4y 7m
MIT

Other

Generate RFC-compliant UUIDs in JavaScript

11.75K
788
2d
MIT

Mime types for JavaScript

1.74K
301
31d
MIT

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

3
3
9m
MIT

Check if a string represent a fully qualified domain name

20
2
1y 63d
MIT

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

4
0
5m
n/a

Check all the available MIME types of an extension

5
1
1y 48d
MIT

Related lists

Delightful Node.js packages and resources

43.11K
5.23K
17d
CC0-1.0

Awesome npm resources and tips

3.86K
242
9d
CC0-1.0