is-linked
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i is-linked

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

95.6 kB

Total Files

16

Last publish

Collaborators

  • ozum