Search results

448 packages found

Find the root directory of a Node.js project or npm package

published version 8.0.0, 2 years ago3302 dependents licensed under $MIT
289,970,745

compute the closest common parent for file paths

published version 1.0.1, 10 years ago1371 dependents licensed under $MIT
103,088,834

find the closest package.json

published version 1.1.0, 8 years ago696 dependents licensed under $MIT
54,878,796

Computes the longest prefix string that is common to each path, excluding the base component

published version 3.0.0, 6 years ago191 dependents licensed under $ISC
42,930,001

Get the root of a posix or windows filepath.

published version 0.1.1, 9 years ago57 dependents licensed under $MIT
27,918,909

Get the directory of globally installed packages and binaries

published version 4.0.1, 2 years ago76 dependents licensed under $MIT
17,696,640

Regular expression for getting the root of a posix or windows filepath.

published version 0.1.2, 9 years ago55 dependents licensed under $MIT
27,922,714

Check if the process is running as root user, for example, one started with `sudo`

published version 3.0.0, 4 years ago616 dependents licensed under $MIT
21,557,343

Determine an app's root path from anywhere inside the app

published version 3.1.0, 3 years ago2751 dependents licensed under $MIT
15,285,259

Returns an object with the (non-glob) base path and the actual pattern.

published version 0.3.0, 10 years ago241 dependents licensed under $MIT
9,729,317

Simple module to infer the root directory of the currently running node application

published version 1.0.2, 10 years ago321 dependents licensed under $MIT
13,098,215

Finds the first parent directory that contains a given file or directory.

published version 0.3.1, 4 years ago183 dependents licensed under $MIT
2,461,397

Try to downgrade the permissions of a process with root privileges

published version 2.0.0, 4 years ago13 dependents licensed under $MIT
1,424,312

Block users from running your app with root permissions

published version 5.0.0, 2 years ago68 dependents licensed under $MIT
1,432,532

Try to downgrade the permissions of a process with root privileges and block access if it fails

published version 2.0.0, 4 years ago914 dependents licensed under $MIT
1,424,376

recursively find the closest .git/

published version 1.0.4, 5 years ago48 dependents licensed under $MIT
654,868

A micro-library for collecting stylesheet data from link and style nodes

published version 2.1.1, a year ago2 dependents licensed under $MIT
462,854

Compute the principal square root of a double-precision floating-point number.

published version 0.2.2, 10 months ago211 dependents licensed under $Apache-2.0
458,615

Square root of double-precision floating-point epsilon.

published version 0.2.2, 10 months ago6 dependents licensed under $Apache-2.0
289,035

Square root of 2π.

published version 0.2.2, 10 months ago7 dependents licensed under $Apache-2.0
397,815