1.1.5 • Published 5 years ago
@node_js/rmdir v1.1.5
rmdir
remove directory by nodejs
Install
$ npm i @node_js/rmdir
Useage
use nodejs fs
const rmdir = require('@node_js/rmdir');
const dir = 'xxx';
(async () => {
await rmdir(dir);
})().catch(console.error);
use shell by nodejs child_process
const rmdir = require('@node_js/rmdir/lib/shell');
const dir = 'xxx';
(async () => {
await rmdir(dir);
})().catch(console.error);
Test
$ npm test
1.1.5
5 years ago