Open kessler opened 2 years ago
const regedit = require('regedit').promisified
but then if promisified arch is needed then one has to require again:
const regedit = require('regedit').arch.promisified
This comes more naturally:
const regedit = require('regedit').promisified await regedit.arch.somemethod()
but then if promisified arch is needed then one has to require again:
This comes more naturally: