js-yaml-promise
Promise wrapper around js-yaml. Assumes a Promise implementation is present.
npm install --save js-yaml-promise
All methods are the exact same, just return a Promise around the try/catch
, for example:
const yaml = exports { try catch err }
I made this since node-yaml did not provide a Promise wrapper
around safeLoad
and safeDump
, it merely exposed parse
as load
from
js-yaml. As well I prefer wrappers to do exactly that - wrap - not add extra
methods.