Check if your module is linked.
import isLinked from "is-linked";
await isLinked();
await isLinked("some-module");
Check if a module is linked by npm
or yarn
. By default checks top-most module.
is-linked
▸ default(module?
: string): Promise<boolean>
Returns whether a module is linked by npm
or yarn
. If no module name is provided, top-most package name is used.
Name | Type | Description |
---|---|---|
module? |
string | is the name of the module to check. Defaults to top-most package name. |
Returns: Promise<boolean>
whether module is linked.
Defined in: index.ts:26