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: Sept. 27, 2022, 6: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

189.2K
22.82K
7m
CC0-1.0

Articles

Array

A small module to check if an Array is sorted

22
31
4y 88d
MIT

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

11
12
6y 8m
MIT

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

32
13
4y 10m
MIT

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

55
13
5y 85d
MIT

easy deduplication of array values

22
3
2y 7m
MIT

creates a new array with given range

23
5
7y 10m
MIT

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

38
16
5y 27d
MIT

Returns an array filled with the specified input

36
8
7m
MIT

Map object keys and values into an array.

4
0
4y 10m
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 6m
MIT

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

116
9
6y 6m
MIT

Swaps the index / position of an array

7
5
6y 5m
MIT

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

5
3
4y 12m
MIT

Group array of objects into lists.

52
13
2y 5m
MIT

Split array/TypedArray to chunks of given size

10
1
6y 6m
n/a

String

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

208
23
8m
MIT

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

44
9
5y 6m
MIT

Convert a string to a camel case.

34
3
6y 8m
n/a

Convert a string to a capital case.

12
2
6y 8m
n/a

Convert a string to a constant case.

4
3
6y 8m
n/a

Convert a string to a dot case.

4
1
1y 7m
n/a

Remove an existing case from a string.

15
5
5y 11m
n/a

Convert a string to pascal case.

3
0
6y 8m
n/a

Convert a string to a sentence case.

6
0
6y 8m
n/a

Convert a string to a snake case.

25
4
4y 7d
n/a

Convert a string to a space case.

5
3
6y 8m
n/a

Convert a string to a title case.

17
6
6y 8m
n/a

slugifies even utf-8 chars!

1.09K
95
7y 5m
MIT

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

0
1
1y 10m
MIT

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

34
2
4y 6m
MIT

Strip ANSI escape codes from a string

316
30
1y 16d
MIT

An implementation of PHP's strip_tags in Typescript.

459
51
1y 101d
MIT

Parse next JSON value from string allowing extraneous characters after value

1
0
4y 7m
BSD-3-Clause

Created with CodeSandbox

1
0
1y 6m
n/a

Date & Time

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

872
60
81d
MIT

thin wrapper around process.hrtime

15
2
2y 13d
MIT
1
0
7y 8m
n/a

Lightweight and simple JS date formatting and parsing

1.97K
137
11m
MIT

Get a time reference using Akamai's time reference service

2
1
3y 8m
MIT

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

4.71K
394
1y 7m
MIT

Get the number of days in a given month

1
0
6y 63d
MIT

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

110
17
2y 10m
MIT

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

225
9
1y 10m
MIT

Object

Map object keys and values into a new object

122
33
11m
MIT

Filter object keys and values into a new object

58
3
1y 32d
MIT

Get the values of an object

23
5
11m
MIT

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

2
0
7y 4m
MIT

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

4
1
7y 10m
ISC

pluck without the madness

11
2
6y 8m
MIT

node's assert.deepEqual algorithm

666
106
9m
MIT

[DEPRECATED] Recursive Object.assign()

249
34
5y 67d
MIT

Set nested properties on an object using dot-notation.

238
43
1y 15d
MIT

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

209
22
3y 10m
MIT

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

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

Flatten object keys

3
1
9y 80d
n/a

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

20
4
5y 63d
MIT

Check if an object is empty.

11
4
7y 8d
MIT

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

258
44
1y 36d
BSD-2-Clause

Returns a copy of an object with its keys sorted

34
4
6y 18d
n/a

defines static object attributes using Object.defineProperties

3
1
3y 4m
MIT

Tells you what keys from first object are missing in second

0
1
2y 7m
n/a

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

2
1
7y 13d
MIT

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

708
62
7m
MIT

Function

Function composition

52
3
6y 11m
MIT

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

315
22
9y 2d
n/a

Run a function exactly one time

203
23
7y 8m
ISC

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

8
2
6y 4m
MIT

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

10
4
6y 10m
n/a

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

973
51
8m
MIT

Throttle and debounce functions.

793
94
1y 10m
n/a

A very tiny and fast compose function.

46
2
2y 4m
MIT

Math

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

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

198
39
4y 86d
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 4m
MIT

A tiny easy math include addition multiplication subtraction division.

7
2
2y 48d
n/a

Finds prime numbers using the Sieve of Eratosthenes algorithm.

1
0
1y 11m
n/a

Find the Greatest Common Divisor using Euclidean Algorithm

0
0
1y 11m
n/a

Stream

Tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise

1.87K
126
2y 89d
MIT

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

35
4
4y 99d
MIT

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

70
3
5y 10m
MIT

A streams2 Readable stream generator, useful for testing.

16
1
5y 6m
MIT

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

559
63
3y 9m
MIT

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

1.86K
173
3y 11m
n/a

A small promise-based wrapper for through2

3
0
4y 11m
ISC

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

864
52
2y 87d
MIT
342
39
5y 22d
MIT

Check if something is a Node.js stream

100
18
1y 48d
MIT

Transform your data as it pass by, synchronously.

77
12
5y 6m
MIT

Promise

Promisify a callback-style function

1.47K
87
15d
MIT

Like Promise.all but for object properties.

10
2
9m
ISC

Resolves a promise after a specified delay.

67
10
10m
MIT

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

270
33
2y 4m
MIT

Data Structure

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

106
2
1y 33d
Apache-2.0

File System

A rm -rf util for nodejs

4.84K
242
7m
ISC

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

2.27K
226
6y 7m
n/a

A simple JavaScript implementation of du -sb

28
9
3y 97d
n/a

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

229
11
2y 8m
MIT

Temporary file and directory creator for node.js

664
92
1y 58d
MIT

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

171
11
5y 4m
MIT

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

3
1
1y 10m
MIT

Browser

Lightweight event delegation

175
30
4y 9m
n/a

insert a string of css into the <head>

241
57
3y 6m
n/a

DOM element value getter/setter.

6
0
5y 9m
MIT

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

139
12
1y 6m
n/a

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

10
1
3y 66d
MIT

Document ready listener for modern browsers

57
3
1y 11m
MIT

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

123
4
7m
MIT

Semver

The semver parser for node (the one npm uses)

4.35K
444
35d
ISC

Find maximum (or minimum) version according to semver

3
0
7y 71d
MIT

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

2
0
6y 8m
MIT

CLI

Like ruby's Abbrev module

146
34
3y 37d
n/a

glob functionality for node.js

7.36K
460
1y 5d
n/a

Get the username of the current user

140
16
1y 42d
MIT

parse argument options

5.03K
270
2y 6m
n/a

convert png to ico format

105
13
8m
MIT

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

4
0
6y 104d
MIT

Module management

Get namespaced config from the closest package.json

112
13
1y 25d
MIT

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

18
2
2y 6m
MIT

Generators

Check whether a given value is a generator function

15
5
5y 4m
MIT

Other

Generate RFC-compliant UUIDs in JavaScript

11.97K
810
9m
MIT

Mime types for JavaScript

1.77K
303
10m
MIT

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

3
3
1y 6m
MIT

Check if a string represent a fully qualified domain name

20
2
1y 12m
MIT

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

4
0
7m
n/a

Check all the available MIME types of an extension

5
1
1y 11m
MIT

Related lists

Delightful Node.js packages and resources

46.91K
5.47K
65d
CC0-1.0

Awesome npm resources and tips

4.08K
257
9m
CC0-1.0