@node-pigpio/util
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

@node-pigpio/util

TODO: description

Usage

var { usingAsync } = require("@node-pigpio/util")


class Closable {
   use() {
   console.log('use')
   }
   close() {
   console.log('closed')
   }
}

await usingAsync(new Closable, (c)=>{
   c.use()
})

// output:
// use
// closed

Readme

Keywords

none

Package Sidebar

Install

npm i @node-pigpio/util

Weekly Downloads

4

Version

0.2.2

License

ISC

Unpacked Size

7.97 kB

Total Files

10

Last publish

Collaborators

  • satoren