@zhangfuxing/rmdir
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

rmdir

remove directory by nodejs

Install

$ npm i @zhangfuxing/rmdir

Useage

use nodejs fs

const rmdir = require('@zhangfuxing/rmdir');
const dir = 'xxx';

(async () => {
  await rmdir(dir);
})().catch(console.error);

use shell by nodejs child_process

const rmdir = require('@zhangfuxing/rmdir/lib/shell');
const dir = 'xxx';

(async () => {
  await rmdir(dir);
})().catch(console.error);

Test

$ npm test

Package Sidebar

Install

npm i @zhangfuxing/rmdir

Weekly Downloads

2

Version

1.1.5

License

MIT

Unpacked Size

2.4 kB

Total Files

5

Last publish

Collaborators

  • fuxingzhang