dz-script
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

usage:

npm i dz-script

eg:

import { delay, animate, updateWorkerjs } from 'dz-script'

await delay();
await delay(2000);


animate(1, 100, (val:number) => {
  console.log(val)
}, 1000)

// workerjs
const worker = new updateWorkerjs({
    pollingTime: 5,
    scriptUrl: '1.js'
})
worker.on('update', () => {
    alert('update')
})

Readme

Keywords

Package Sidebar

Install

npm i dz-script

Weekly Downloads

2

Version

0.0.7

License

MIT

Unpacked Size

106 kB

Total Files

60

Last publish

Collaborators

  • dz-design
  • shuaibishun