Search results

1000+ packages found

Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes

published version 6.0.0, 2 years ago1205 dependents licensed under $MIT
146,907,438

A Minipass stream that raises an error if you get a different number of bytes than expected

published version 1.0.3, 6 years ago147 dependents licensed under $ISC
58,774,935

Convert bytes to a human readable string: 1337 → 1.34 kB

published version 7.0.0, a month ago1950 dependents licensed under $MIT
66,991,212

JavaScript library to generate a human readable String describing the file size

published version 10.1.6, 9 months ago2402 dependents licensed under $BSD-3-Clause
52,652,254

get dimensions of any image file

published version 2.0.2, 2 months ago2575 dependents licensed under $MIT
55,526,791

Get the gzipped size of a string or buffer

published version 7.0.0, 4 years ago1319 dependents licensed under $MIT
55,004,330

Use logical properties and values in CSS

published version 8.1.0, 3 months ago226 dependents licensed under $MIT-0
25,767,692

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap

published version 4.10.2, a year ago3291 dependents licensed under $MIT
29,971,283

Tracks the download progress of a request made with mikeal/request, giving insight of various metrics including progress percent, download speed and time remaining

published version 3.0.0, 8 years ago439 dependents licensed under $MIT
25,773,536

Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.

published version 9.0.1, 6 months ago182 dependents licensed under $MIT
9,509,807

Reliable way to get the height and width of terminal/console, since it's not calculated or updated the same way on all platforms, environments and node.js versions.

published version 1.1.1, 7 years ago325 dependents licensed under $MIT
13,468,278

A React hook that allows you to use a ResizeObserver to measure an element's size.

published version 9.1.0, 3 years ago355 dependents licensed under $MIT
9,422,481

Buffer and transform the n first bytes of a stream

published version 6.0.0, 2 years ago44 dependents licensed under $MIT
7,146,788

Detab: tabs -> spaces

published version 3.0.2, 3 years ago75 dependents licensed under $MIT
6,609,278

Get image size without full download (JPG, GIF, PNG, WebP, BMP, TIFF, PSD)

published version 7.2.3, 3 years ago305 dependents licensed under $MIT
2,997,722

Takes an array of numbers and calculates some descriptive statistics

published version 2.1.0, 5 years ago21 dependents licensed under $MIT
3,312,617

DOM element size sensor which will callback when size changed.

published version 1.0.2, 2 years ago96 dependents licensed under $ISC
1,671,607

Get the brotli compressed size of a string or buffer

published version 4.0.0, 6 years ago147 dependents licensed under $MIT
1,595,808

Apply a size limit to a Map class or instance

published version 1.0.0, 6 years ago1 dependents licensed under $MIT
1,466,887

measures element size

published version 3.0.0, 3 years ago37 dependents licensed under $MIT
1,411,076