Search results

441 packages found

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

published version 8.0.0, a year ago3238 dependents licensed under $MIT
175,146,556

compute the closest common parent for file paths

published version 1.0.1, 10 years ago1344 dependents licensed under $MIT
65,225,740

find the closest package.json

published version 1.1.0, 8 years ago686 dependents licensed under $MIT
34,310,587

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

published version 3.0.0, 5 years ago189 dependents licensed under $ISC
27,072,626

Get the root of a posix or windows filepath.

published version 0.1.1, 9 years ago55 dependents licensed under $MIT
17,019,847

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

published version 3.0.0, 4 years ago615 dependents licensed under $MIT
14,351,494

Get the directory of globally installed packages and binaries

published version 4.0.1, a year ago62 dependents licensed under $MIT
10,103,780

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

published version 0.1.2, 9 years ago53 dependents licensed under $MIT
16,337,645

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

published version 3.1.0, 2 years ago2729 dependents licensed under $MIT
10,095,515

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

published version 0.3.0, 9 years ago241 dependents licensed under $MIT
6,841,192

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
9,680,169

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

published version 0.3.1, 4 years ago182 dependents licensed under $MIT
1,503,526

Try to downgrade the permissions of a process with root privileges

published version 2.0.0, 4 years ago13 dependents licensed under $MIT
701,205

Block users from running your app with root permissions

published version 5.0.0, a year ago67 dependents licensed under $MIT
713,508

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

published version 2.0.0, 4 years ago899 dependents licensed under $MIT
701,387

recursively find the closest .git/

published version 1.0.4, 5 years ago48 dependents licensed under $MIT
337,509

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

published version 2.1.1, a year ago2 dependents licensed under $MIT
261,793

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

published version 2.0.12, 9 months ago5 dependents licensed under $ISC
222,374

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

published version 0.2.2, 6 months ago211 dependents licensed under $Apache-2.0
216,129

Square root of double-precision floating-point epsilon.

published version 0.2.2, 6 months ago6 dependents licensed under $Apache-2.0
169,468