Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

module-root-sync

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

module-root-sync

Finds the directory that the modules resides in

Source
npmnpm
Version
1.2.7
Version published
Weekly downloads
2.9K
15.12%
Maintainers
1
Weekly downloads
 
Created
Source

module-root-sync

Finds the directory that the modules resides in.

import moduleRoot from 'module-root-sync';

const root = moduleRoot(import.meta.filename);

Documentation

API Docs

Keywords

package

FAQs

Package last updated on 09 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts