{"id":29189430,"url":"https://github.com/coderaiser/flop","last_synced_at":"2025-07-01T23:07:43.288Z","repository":{"id":17993305,"uuid":"21003395","full_name":"coderaiser/flop","owner":"coderaiser","description":":file_folder: FLOP - Folder operations module","archived":false,"fork":false,"pushed_at":"2025-02-13T13:10:18.000Z","size":172,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-17T17:52:25.199Z","etag":null,"topics":["cloudcmd","copy","create","directory","folder","move","nodejs","readify","remove"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"neuralchain/razrbit-sdk-php","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coderaiser.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2014-06-19T14:32:47.000Z","updated_at":"2025-02-13T13:10:23.000Z","dependencies_parsed_at":"2024-04-01T17:52:09.109Z","dependency_job_id":null,"html_url":"https://github.com/coderaiser/flop","commit_stats":{"total_commits":296,"total_committers":3,"mean_commits":98.66666666666667,"dds":0.3648648648648649,"last_synced_commit":"aa98b2615075f655e497a4a01835efeb39ecd39b"},"previous_names":[],"tags_count":87,"template":false,"template_full_name":null,"purl":"pkg:github/coderaiser/flop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fflop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fflop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fflop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fflop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/flop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fflop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263047676,"owners_count":23405280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudcmd","copy","create","directory","folder","move","nodejs","readify","remove"],"created_at":"2025-07-01T23:07:42.546Z","updated_at":"2025-07-01T23:07:43.253Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","readme":"# Flop [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/flop.svg?style=flat\n[BuildStatusURL]: https://github.com/coderaiser/flop/actions?query=workflow%3A%22Node+CI%22 \"Build Status\"\n[BuildStatusIMGURL]: https://github.com/coderaiser/flop/workflows/Node%20CI/badge.svg\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]: https://npmjs.org/package/flop \"npm\"\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n\nFLOP - Folder operations module.\n\n## Install\n\nFor use as application you could use global install.\n\n```\nnpm i flop -g\n```\n\nIf you run `flop -h` you will see:\n\n```\nflop - folder operations module.\noptions:\n-h, --help - show this message\n-r, --read - get directory content\n```\n\nAlso you can use flop as a module if install with\n\n```\nnpm i flop\n```\n\n## API\n\n### create\n\nCreate new directory.\n\n```js\nconst flop = require('flop');\n\nflop.create('./hello/world/from/flop', (error, data) =\u003e {\n    console.log(error, data);\n});\n```\n\n### read\n\nRead content of directory with permisions and sizes.\n\nParameters:\n\n- path\n- type (optional)\n- options (optional)\n\nPosible type:\n\n- raw\n- size\n- size raw\n\n```js\nconst flop = require('flop');\n\nawait flop.read('.');\nawait flop.read('.', {\n    sort: 'size',\n});\nawait flop.read('.', 'raw');\nawait flop.read('.', 'size');\nawait flop.read('.', 'size raw');\n```\n\n### copy\n\n```js\nconst flop = require('flop');\n\nawait flop.copy('from', 'to');\n```\n\n### move\n\n```js\nconst flop = require('flop');\n\nawait flop.move('from', 'to');\n```\n\n### remove\n\n```js\nawait flop.remove('path/to/remove');\nawait flop.remove('path/to/remove', ['folder1', 'folder2']);\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fflop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Fflop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fflop/lists"}