Search results

1000+ packages found

Detect whether a terminal supports color

published version 10.0.0, 6 months ago4452 dependents licensed under $MIT
1,427,520,560

Check if argv has a specific flag

published version 5.0.1, 4 years ago3357 dependents licensed under $MIT
993,992,382

Check if the character represented by a given Unicode code point is fullwidth

published version 5.0.0, 2 years ago2788 dependents licensed under $MIT
603,205,782

Check if something is a Node.js stream

published version 4.0.1, a year ago2622 dependents licensed under $MIT
444,174,682

Get details about the current Continuous Integration environment

published version 4.2.0, 3 months ago1916 dependents licensed under $MIT
287,094,125

Check if a file path is a binary file

published version 3.0.0, a year ago1614 dependents licensed under $MIT
234,983,955

Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)

published version 3.1.0, 2 years ago2209 dependents licensed under $MIT
225,128,984

Check if the process is running inside a Docker container

published version 3.0.0, 4 years ago1430 dependents licensed under $MIT
188,192,647

Detect whether the terminal supports Unicode

published version 2.1.0, 9 months ago1251 dependents licensed under $MIT
181,508,627

Detect the file type of a file, stream, or data

published version 21.0.0, 22 days ago2450 dependents licensed under $MIT
111,675,293

Detect the indentation of code

published version 7.0.1, 3 years ago1016 dependents licensed under $MIT
73,276,986

Detect whether or not an object is a Typed Array

published version 1.0.0, 10 years ago1245 dependents licensed under $MIT
133,525,678

Check if stdout or stderr is interactive

published version 2.0.0, 4 years ago1084 dependents licensed under $MIT
119,274,966

Check if something is a generator function

published version 3.0.0, 4 years ago978 dependents licensed under $MIT
120,741,816

Detect whether a terminal supports hyperlinks

published version 4.1.0, a month ago880 dependents licensed under $MIT
94,243,551

Detect if the current environment is a CI server

published version 4.1.0, 6 months ago1582 dependents licensed under $MIT
90,260,912

Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc

published version 1.1.0, a year ago25 dependents licensed under $MIT
38,179,105

Detect Node.JS (as opposite to browser environment) (reliable)

published version 2.1.0, 4 years ago917 dependents licensed under $MIT
72,476,271

Check if your code is running as an npm script

published version 6.0.0, 4 years ago491 dependents licensed under $MIT
34,692,330

Check if your package was installed globally

published version 1.0.0, 2 years ago590 dependents licensed under $MIT
62,271,097