Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

readfile-async.js 223 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
  1. const fs = require('fs')
  2. const util = require('util')
  3. // This is faster than using `fs.promises.readFile` for the time being
  4. // See: https://github.com/nodejs/node/issues/37583
  5. module.exports = util.promisify(fs.readFile)
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...