Search results

1000+ packages found

Test if a value is a UNC path.

published version 0.2.2, a year ago1 dependents licensed under $Apache-2.0
55

Check if a value is a natural number

published version 4.0.1, 9 years ago40 dependents licensed under $MIT
12,988,819

Coalesce for JavaScript. Returns the first value that is not undefined or null.

published version 1.0.2, 8 years ago23 dependents licensed under $MIT
14,051,526

Check if path is a dir

published version 1.0.0, 8 years ago2 dependents licensed under $MIT
94

Displays a beginner-friendly message telling your user to upgrade their version of Node

published version 3.2.0, 6 years ago359 dependents licensed under $MIT
25,585,893

URI validation functions

published version 1.0.9, 12 years ago1145 dependents
11,223,549

Check if path is a file

published version 1.0.0, 8 years ago2 dependents licensed under $MIT
98

Check if a Buffer/Uint8Array is a GZIP file

published version 2.0.0, 8 years ago79 dependents licensed under $MIT
10,967,456

Returns `true` if the value is a primitive.

published version 3.0.1, 7 years ago257 dependents licensed under $MIT
15,038,868

Check if a file path is a compressed file

published version 3.0.0, a year ago5 dependents licensed under $MIT
120

Check if your package was installed globally

published version 1.0.0, 2 years ago591 dependents licensed under $MIT
65,250,071

* Convert an absolute path to a tilde path: `/Users/YourUserName/dev` → `~/dev` * Inspired by [tilify](https://github.com/sindresorhus/tildify) by [Sindre Sorhus](https://github.com/sindresorhus) * Since tildify uses ES6 syntax, I created this package to

published version 1.0.0, a year ago0 dependents licensed under $MIT
254

Return true if a value is a valid glob pattern or patterns.

published version 1.0.0, 8 years ago88 dependents licensed under $MIT
10,779,594

Detect the archive type of a Buffer/Uint8Array

published version 4.0.0, 8 years ago49 dependents licensed under $MIT
8,904,113

Checks if the given value is a window object.

published version 1.0.2, 9 years ago116 dependents licensed under $MIT
6,923,377

Returns true if the value passed is all whitespace.

published version 0.3.0, 10 years ago15 dependents licensed under $MIT
5,509,932

Validates if a value is an array.

published version 1.0.6, 10 years ago96 dependents licensed under $MIT
4,592,886

Promisified version of node-which

published version 1.0.0, 10 years ago13 dependents licensed under $MIT
1,077,478

Check if argv has a specific flag

published version 5.0.1, 4 years ago3364 dependents licensed under $MIT
1,063,043,200

Validates if a value is a number.

published version 1.0.3, 10 years ago28 dependents
4,222,189