Search results

452 packages found

compute the closest common parent for file paths

published version 1.0.1, 10 years ago1221 dependents licensed under $MIT
131,572,506

find the closest package.json

published version 1.1.0, 8 years ago663 dependents licensed under $MIT
65,341,419

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

published version 3.0.0, 6 years ago184 dependents licensed under $ISC
47,684,894

Get the root of a posix or windows filepath.

published version 0.1.1, 9 years ago59 dependents licensed under $MIT
32,855,731

Get the directory of globally installed packages and binaries

published version 4.0.1, 2 years ago78 dependents licensed under $MIT
19,937,408

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

published version 3.0.0, 4 years ago592 dependents licensed under $MIT
27,882,949

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

published version 0.3.0, 10 years ago199 dependents licensed under $MIT
18,359,973

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

published version 0.1.2, 9 years ago56 dependents licensed under $MIT
32,858,392

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

published version 3.1.0, 3 years ago2598 dependents licensed under $MIT
17,809,870

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

published version 1.0.2, 10 years ago306 dependents licensed under $MIT
15,042,685

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

published version 0.3.1, 4 years ago177 dependents licensed under $MIT
3,732,538

Block users from running your app with root permissions

published version 5.0.0, 2 years ago58 dependents licensed under $MIT
1,448,508

Try to downgrade the permissions of a process with root privileges

published version 2.0.0, 4 years ago13 dependents licensed under $MIT
1,432,152

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

published version 2.0.0, 4 years ago892 dependents licensed under $MIT
1,432,062

recursively find the closest .git/

published version 1.0.4, 5 years ago47 dependents licensed under $MIT
616,670

resolve package root and package.json paths , work on node 17 too

published version 2.0.12, a year ago5 dependents licensed under $ISC
513,523

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

published version 2.1.1, a year ago2 dependents licensed under $MIT
492,224

Get Windows System Root certificates

published version 3.5.1, 2 years ago32 dependents licensed under $MIT
488,422

A performance conscious library for merkle root and tree calculations.

published version 2.0.10, 8 years ago138 dependents licensed under $MIT
374,479

Misc tools for dealing with repositories of multiple version control systems (git, svn, etc)

published version 2.0.1, 11 days ago1 dependents licensed under $ISC
304,995