Skip to content

ozum/is-linked

Repository files navigation

is-linked

Check if your module is linked.

Installation

Synopsis

import isLinked from "is-linked";

await isLinked();
await isLinked("some-module");

Details

Check if a module is linked by npm or yarn. By default checks top-most module.

API

is-linked

is-linked

Table of contents

Functions

Functions

default

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.

Parameters:

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