Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.79 KB

README.md

File metadata and controls

34 lines (29 loc) · 1.79 KB

Logo/ skylib

Skypack for all!


Check out Skypack's official documentation!


npm Google Badge npms.io daviddm daviddm-dev

API

SKYPACK_URL: string: Equals the following: https://cdn.skypack.dev

isValidVersion(package_version: string): boolean: Returns if Skypack will accept the passed package version.

isValidPackage(package_id: string): boolean: Returns if Skypack will accept the passed package ID.

getSkypackUrl(package_id: string, minified = true): Promise<string>: Returns the most optimal Skypack URL for a passed package ID, which is usually a pinned URL. If the package ID is invalid, it will be returned.