Sha256: 503d1f47c369dee064687c94c163e15adfbad082f10b282b0ec1e9847caa4505
Contents?: true
Size: 292 Bytes
Versions: 28
Compression:
Stored size: 292 Bytes
Contents
var rimraf = require('rimraf').sync; var fs = require('fs'); module.exports = function del(file) { if (fs.existsSync(file)) { //if rimraf doesn't throw then the file has been deleted or didn't exist rimraf(file, { glob: false, }); return true; } return false; };
Version data entries
28 entries across 28 versions & 3 rubygems