Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 425 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 425 Bytes

CDNObject

A normal front-end CDN object selector.

Usage

import '@chenyfan/cdnobject'
const CDNInstance = new CDNObject()
const CDNObjectClass = new CDNInstance("https://unpkg.com/@chenyfan/cdnobject/dist/index.min.js")

You should import pako.ungzip if you wanna use GetFileFromNPMPackageFunction.

import { ungzip } from "pako"
const CDNInstance = new CDNObject({ ungzip })