1.1.5 • Published 5 years ago

@node_js/rmdir v1.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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