Typescript Typings for mz.
typings install --save mz
import * as fs from 'mz/fs';
async function doSomething() {
if (await fs.exists(__filename)) {
// whatever
}
}
You can run them the tests with npm run build
and npm run test
.