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: Feb. 4, 2023, 7 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

189.2K
22.82K
12m
CC0-1.0

Articles

Array

A small module to check if an Array is sorted

22
31
4y 7m
MIT

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

11
12
7y 25d
MIT

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

32
13
5y 67d
MIT

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

55
13
5y 7m
MIT

easy deduplication of array values

22
3
2y 11m
MIT

creates a new array with given range

23
5
8y 89d
MIT

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

38
16
5y 5m
MIT

Returns an array filled with the specified input

36
8
1y 2d
MIT

Map object keys and values into an array.

4
0
5y 69d
MIT

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

16
2
6y 10m
MIT

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

116
9
6y 10m
MIT

Swaps the index / position of an array

7
5
6y 9m
MIT

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

5
3
5y 4m
MIT

Group array of objects into lists.

52
13
2y 10m
MIT

Split array/TypedArray to chunks of given size

10
1
6y 10m
n/a

String

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

208
23
1y 27d
MIT

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

44
9
5y 10m
MIT

Convert a string to a camel case.

34
3
7y 16d
n/a

Convert a string to a capital case.

12
2
7y 16d
n/a

Convert a string to a constant case.

4
3
7y 16d
n/a

Convert a string to a dot case.

4
1
1y 12m
n/a

Remove an existing case from a string.

15
5
6y 102d
n/a

Convert a string to pascal case.

3
0
7y 16d
n/a

Convert a string to a sentence case.

6
0
7y 16d
n/a

Convert a string to a snake case.

25
4
4y 4m
n/a

Convert a string to a space case.

5
3
7y 16d
n/a

Convert a string to a title case.

17
6
7y 16d
n/a

slugifies even utf-8 chars!

1.09K
95
7y 9m
MIT

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

0
1
2y 71d
MIT

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

34
2
4y 11m
MIT

Strip ANSI escape codes from a string

316
30
1y 4m
MIT

An implementation of PHP's strip_tags in Typescript.

459
51
1y 7m
MIT

Parse next JSON value from string allowing extraneous characters after value

1
0
4y 11m
BSD-3-Clause

Created with CodeSandbox

1
0
1y 10m
n/a

Date & Time

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

897
62
7m
MIT

thin wrapper around process.hrtime

15
2
2y 4m
MIT
1
0
8y 16d
n/a

Lightweight and simple JS date formatting and parsing

1.97K
137
1y 105d
MIT

Get a time reference using Akamai's time reference service

2
1
4y 28d
MIT

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

4.71K
394
1y 11m
MIT

Get the number of days in a given month

1
0
6y 6m
MIT

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

110
17
3y 74d
MIT

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

225
9
2y 65d
MIT

Object

Map object keys and values into a new object

122
33
1y 109d
MIT

Filter object keys and values into a new object

58
3
1y 5m
MIT

Get the values of an object

23
5
1y 4m
MIT

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

2
0
7y 8m
MIT

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

4
1
8y 72d
ISC

pluck without the madness

11
2
7y 14d
MIT

node's assert.deepEqual algorithm

666
106
1y 56d
MIT

[DEPRECATED] Recursive Object.assign()

249
34
5y 6m
MIT

Set nested properties on an object using dot-notation.

238
43
1y 4m
MIT

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

209
22
4y 80d
MIT

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

24
6
4y 11m
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
3y 110d
MIT

Flatten object keys

3
1
9y 7m
n/a

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

20
4
5y 6m
MIT

Check if an object is empty.

11
4
7y 4m
MIT

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

258
44
1y 5m
BSD-2-Clause

Returns a copy of an object with its keys sorted

34
4
6y 4m
n/a

defines static object attributes using Object.defineProperties

3
1
3y 9m
MIT

Tells you what keys from first object are missing in second

0
1
2y 11m
n/a

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

2
1
7y 4m
MIT

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

708
62
1y 4d
MIT

Function

Function composition

52
3
7y 4m
MIT

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

315
22
9y 4m
n/a

Run a function exactly one time

203
23
8y 11d
ISC

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

8
2
6y 9m
MIT

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

10
4
7y 67d
n/a

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

990
57
1y 20d
MIT

Throttle and debounce functions.

793
94
2y 94d
n/a

A very tiny and fast compose function.

46
2
2y 8m
MIT

Math

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

155
12
4y 10m
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.

198
39
4y 7m
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.

203
75
4y 8m
MIT

A tiny easy math include addition multiplication subtraction division.

7
2
2y 5m
n/a

Finds prime numbers using the Sieve of Eratosthenes algorithm.

1
0
2y 4m
n/a

Find the Greatest Common Divisor using Euclidean Algorithm

0
0
2y 4m
n/a

Stream

Tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise

1.89K
128
2y 7m
MIT

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

35
4
4y 7m
MIT

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

70
3
6y 92d
MIT

A streams2 Readable stream generator, useful for testing.

16
1
5y 10m
MIT

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

559
63
4y 46d
MIT

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

1.87K
173
4y 114d
n/a

A small promise-based wrapper for through2

3
0
5y 105d
ISC

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

864
52
2y 7m
MIT
342
39
5y 5m
MIT

Check if something is a Node.js stream

100
18
1y 5m
MIT

Transform your data as it pass by, synchronously.

77
12
5y 10m
MIT

Promise

Promisify a callback-style function

1.48K
88
4m
MIT

Like Promise.all but for object properties.

10
2
1y 52d
ISC

Resolves a promise after a specified delay.

67
10
1y 65d
MIT

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

270
33
2y 9m
MIT

Data Structure

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

106
2
1y 5m
Apache-2.0

File System

A rm -rf util for nodejs

5.03K
249
5d
ISC

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

2.27K
226
7y 0d
n/a

A simple JavaScript implementation of du -sb

28
9
3y 7m
n/a

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

229
11
3y 14d
MIT

Temporary file and directory creator for node.js

664
92
1y 6m
MIT

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

171
11
5y 9m
MIT

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

3
1
2y 75d
MIT

Browser

Lightweight event delegation

175
30
5y 62d
n/a

insert a string of css into the <head>

241
57
3y 10m
n/a

DOM element value getter/setter.

6
0
6y 38d
MIT

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

139
12
1y 10m
n/a

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

10
1
3y 6m
MIT

Document ready listener for modern browsers

57
3
2y 98d
MIT

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

123
4
1y 0d
MIT

Semver

The semver parser for node (the one npm uses)

4.51K
459
56d
ISC

Find maximum (or minimum) version according to semver

3
0
7y 6m
MIT

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

2
0
7y 8d
MIT

CLI

Like ruby's Abbrev module

146
34
3y 5m
n/a

glob functionality for node.js

7.36K
460
1y 4m
n/a

Get the username of the current user

143
16
1y 5m
MIT

parse argument options

5.03K
270
2y 10m
n/a

convert png to ico format

105
13
1y 9d
MIT

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

4
0
6y 7m
MIT

Module management

Get namespaced config from the closest package.json

112
13
1y 5m
MIT

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

18
2
2y 11m
MIT

Generators

Check whether a given value is a generator function

15
5
5y 9m
MIT

Other

Generate RFC-compliant UUIDs in JavaScript

11.97K
810
1y 64d
MIT

Mime types for JavaScript

1.77K
303
1y 93d
MIT

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

3
3
1y 11m
MIT

Check if a string represent a fully qualified domain name

20
2
2y 4m
MIT

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

4
0
11m
n/a

Check all the available MIME types of an extension

5
1
2y 110d
MIT

Related lists

Delightful Node.js packages and resources

48.97K
5.54K
6m
CC0-1.0

Awesome npm resources and tips

4.17K
263
1y 57d
CC0-1.0