fourdollar.promisify
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

fourdollar.promisify

Install

$ yarn add fourdollar.promisify

Usage

import promisify from 'fourdollar.promisify'
import {readFile} from 'fs'

async function readMe() {
  const readFile_ = promisify<(filename: string) => Promise<Buffer>>(readFile)
  return await readFile_(__dirname + '/promisify.ts')
}

readMe().then((buffer) => {
  console.log(buffer.toString())
})

License

Copyright (c) bynaki. All rights reserved.

Licensed under the MIT License.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.6
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.6
    1
  • 1.0.5
    0
  • 1.0.4
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i fourdollar.promisify

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

2.43 kB

Total Files

4

Last publish

Collaborators

  • bynaki