flop

12.0.1 • Public • Published

Flop License NPM version Build Status

FLOP - Folder operations module.

Install

For use as application you could use global install.

npm i flop -g

If you run flop -h you will see:

flop - folder operations module.
options:
-h, --help - show this message
-r, --read - get directory content

Also you can use flop as a module if install with

npm i flop

API

create

Create new directory.

const flop = require('flop');

flop.create('./hello/world/from/flop', (error, data) => {
    console.log(error, data);
});

read

Read content of directory with permisions and sizes.

Parameters:

  • path
  • type (optional)
  • options (optional)

Posible type:

  • raw
  • size
  • size raw
const flop = require('flop');

await flop.read('.');
await flop.read('.', {
    sort: 'size',
});
await flop.read('.', 'raw');
await flop.read('.', 'size');
await flop.read('.', 'size raw');

copy

const flop = require('flop');

await flop.copy('from', 'to');

move

const flop = require('flop');

await flop.move('from', 'to');

remove

await flop.remove('path/to/remove');
await flop.remove('path/to/remove', ['folder1', 'folder2']);

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
12.0.156latest

Version History

VersionDownloads (Last 7 Days)Published
12.0.156
12.0.00
11.2.015
11.1.00
11.0.00
10.0.131
10.0.00
9.1.318
9.1.20
9.1.10
9.1.00
9.0.22
9.0.10
9.0.00
8.1.00
8.0.40
8.0.30
8.0.20
8.0.10
8.0.00
7.0.418
7.0.31
7.0.20
7.0.10
7.0.00
6.0.30
6.0.20
6.0.10
6.0.00
5.0.11
5.0.00
4.0.718
4.0.60
4.0.50
4.0.40
4.0.30
4.0.20
4.0.10
4.0.03
3.0.10
3.0.00
2.0.54
2.0.40
2.0.30
2.0.20
2.0.10
2.0.00
1.6.02
1.5.10
1.5.00
1.4.50
1.4.40
1.4.30
1.4.22
1.4.10
1.4.00
1.3.22
1.3.11
1.3.00
1.2.12
1.2.00
1.1.12
1.1.00
1.0.3616
1.0.340
1.0.330
1.0.320
1.0.310
1.0.300
1.0.290
1.0.280
1.0.270
1.0.260
1.0.250
1.0.240
1.0.230
1.0.220
1.0.210
1.0.200
1.0.190
1.0.180
1.0.170
1.0.160
1.0.152
1.0.140
1.0.130
1.0.120
1.0.110
1.0.100
1.0.92
1.0.80
1.0.70
1.0.41
1.0.30
1.0.20
1.0.13
1.0.00
0.9.20

Package Sidebar

Install

npm i flop

Weekly Downloads

202

Version

12.0.1

License

MIT

Unpacked Size

15.3 kB

Total Files

6

Last publish

Collaborators

  • coderaiser