await-fs
Async await nodejs fs wrapper Node core fs wrapped functions that return a Promise.
Installation
npm install await-fs
Usage
Use all the regular async fs functions without callback hell and co:
const fs = ;async = > trylet json = await fsconsolecatcherrconsole
Note.
For constants you may need require('fs')
const fs = ;const aw = ; async = > trylet access = await aw// silently gives nothing - means all is OKcatcherrconsole // access denied
Licence
MIT