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 ago1206 dependents licensed under $MIT
142,100,914

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

published version 10.1.6, 9 months ago2403 dependents licensed under $BSD-3-Clause
51,569,189

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
56,651,251

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

published version 7.0.0, a month ago1952 dependents licensed under $MIT
65,601,718

get dimensions of any image file

published version 2.0.2, 2 months ago2576 dependents licensed under $MIT
54,273,981

Get the gzipped size of a string or buffer

published version 7.0.0, 4 years ago1319 dependents licensed under $MIT
52,931,297

Use logical properties and values in CSS

published version 8.1.0, 3 months ago226 dependents licensed under $MIT-0
24,836,339

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

published version 4.10.2, a year ago3293 dependents licensed under $MIT
28,561,021

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, 9 years ago439 dependents licensed under $MIT
24,563,008

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,248,219

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,206,405

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
8,893,375

Buffer and transform the n first bytes of a stream

published version 6.0.0, 2 years ago44 dependents licensed under $MIT
6,848,460

Detab: tabs -> spaces

published version 3.0.2, 3 years ago75 dependents licensed under $MIT
6,406,899

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,890,310

Takes an array of numbers and calculates some descriptive statistics

published version 2.1.0, 5 years ago21 dependents licensed under $MIT
3,119,334

Get the brotli compressed size of a string or buffer

published version 4.0.0, 6 years ago147 dependents licensed under $MIT
1,549,993

DOM element size sensor which will callback when size changed.

published version 1.0.2, 2 years ago96 dependents licensed under $ISC
1,596,109

Apply a size limit to a Map class or instance

published version 1.0.0, 6 years ago1 dependents licensed under $MIT
1,397,530

measures element size

published version 3.0.0, 3 years ago37 dependents licensed under $MIT
1,357,575