Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 551 Bytes

File metadata and controls

29 lines (18 loc) · 551 Bytes

@109cafe/label / build

Function: build()

build(parsed): string

Build a label string from a parsed Label object

Parameters

parsed: Label

The parsed Label object

Returns

string

The label string

Example

import { build } from "@109cafe/label";
build({ package: "foo", target: "bar" }); // foo:bar
build({ package: "foo", includeSubPackages: true }); // foo/...
build({ scope: "", package: "foo" }); // //foo
build({ scope: "@npm", package: "foo" }); // @npm//foo