versionOf
Looks a version up and fails loudly when the name is unknown, so a typo in a template cannot silently write undefined into a manifest.
Looks a version up and fails loudly when the name is unknown, so a typo in a template cannot
silently write undefined into a manifest.
Import#
ts
import { versionOf } from "create-shadow-app";
Signature#
ts
function versionOf(name: string): string
Parameters#
| Name | Description |
|---|---|
name |
Package name. |
Returns#
Its version range.
Throws#
- Error for a package that has no entry in
VERSIONS.
Examples#
ts
versionOf("tailwindcss"); // "4.3.3"