UNPKG

generator-website-starter

Version:

A website generator using semantic markup, SASS, Gulp, Imagemin and Browser-sync

18 lines (15 loc) 357 B
'use strict'; var util = require('util'); var getPolyfill = require('./polyfill'); module.exports = function shimUtilPromisify() { var polyfill = getPolyfill(); if (polyfill !== util.promisify) { Object.defineProperty(util, 'promisify', { configurable: true, enumerable: true, value: polyfill, writable: true }); } return polyfill; };