exec-once
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

Exec Once

Create a function that executes once

Examples

This code should prints 10 lines of the same number

const once = require('exec-once')
const randomOnce = once(Math.random())
for (let count = 10; count; --count) {
  console.log(randomOnce())
}

License

MIT © Hoàng Văn Khải

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i exec-once

    Weekly Downloads

    1

    Version

    0.1.8

    License

    MIT

    Unpacked Size

    1.54 kB

    Total Files

    5

    Last publish

    Collaborators

    • khai96_