Flop
:file_folder: FLOP - Folder operations module
Install / Use
/learn @coderaiser/FlopREADME
Flop

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
Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
