Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adebola-io/gathered
A command line tool for file organization.
https://github.com/adebola-io/gathered
bun cli filesystem fs nodejs typescript
Last synced: about 2 months ago
JSON representation
A command line tool for file organization.
- Host: GitHub
- URL: https://github.com/adebola-io/gathered
- Owner: adebola-io
- License: isc
- Created: 2023-12-07T13:32:04.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-07T18:04:07.000Z (about 1 year ago)
- Last Synced: 2023-12-08T14:37:06.112Z (about 1 year ago)
- Topics: bun, cli, filesystem, fs, nodejs, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/gathered
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gathered
Gathered is a simple command line tool for organizing (and disorganizing) the files in a directory.
## Usage
Install the tool globally using
```
npm install -g gathered
```Simply pass in the path to the folder to sort:
```
gather ./disorganized
```The default strategy is to sort files according to extension. For other grouping strategies, peruse the [options](./docs/options.md).
You can also use the `ungather` command to unroll a set of subfolders into the main folder.
```
ungather ./nested
```This will take files in the subfolders and move them to the main folder.
_NOTE_: By default, it will only unroll the first level of files. To return all the files nested deep, you can use the `--recursive=true` option.
The target folder can be changed with the `--target` option.
For more about the available command line options, peruse the [options](./docs/options.md).## Development
To install dependencies:
```bash
bun install
```To run:
```bash
bun run source/index.ts
```This project was created using `bun init` in bun v1.0.15. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.