Search results

441 packages found

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

published version 8.0.0, a year ago3245 dependents licensed under $MIT
212,092,641

compute the closest common parent for file paths

published version 1.0.1, 10 years ago1345 dependents licensed under $MIT
75,499,493

find the closest package.json

published version 1.1.0, 8 years ago687 dependents licensed under $MIT
40,894,861

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
32,936,206

Get the root of a posix or windows filepath.

published version 0.1.1, 9 years ago56 dependents licensed under $MIT
20,675,162

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

published version 0.1.2, 9 years ago54 dependents licensed under $MIT
20,678,440

Get the directory of globally installed packages and binaries

published version 4.0.1, a year ago63 dependents licensed under $MIT
12,318,760

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
17,111,575

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

published version 3.1.0, 2 years ago2732 dependents licensed under $MIT
12,078,332

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
11,722,144

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
7,816,705

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,807,966

Try to downgrade the permissions of a process with root privileges

published version 2.0.0, 4 years ago13 dependents licensed under $MIT
823,505

Block users from running your app with root permissions

published version 5.0.0, a year ago67 dependents licensed under $MIT
812,768

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

published version 2.0.0, 4 years ago901 dependents licensed under $MIT
823,695

recursively find the closest .git/

published version 1.0.4, 5 years ago48 dependents licensed under $MIT
383,806

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

published version 2.1.1, a year ago2 dependents licensed under $MIT
320,270

Square root of double-precision floating-point epsilon.

published version 0.2.2, 6 months ago6 dependents licensed under $Apache-2.0
242,643

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
286,450

A collection of helpers that aim to simplify using reactive primitives outside of reactive roots, and managing disposal of reactive roots.

published version 1.5.0, 13 days ago15 dependents licensed under $MIT
186,291