JSPM

  • Created
  • Published
  • Downloads 8295
  • Score
    100M100P100Q116612F
  • License MIT

Finds the directory that the modules resides in

Package Exports

  • module-root-sync
  • module-root-sync/package.json

Readme

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