https://github.com/adhamu/nizr
A simple Node utility script to move or copy files from source directories into a target directory with a particular date format as its directory name
https://github.com/adhamu/nizr
eslint exif glob node nvm prettier typescript
Last synced: 7 months ago
JSON representation
A simple Node utility script to move or copy files from source directories into a target directory with a particular date format as its directory name
- Host: GitHub
- URL: https://github.com/adhamu/nizr
- Owner: adhamu
- Created: 2021-03-21T18:27:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-18T09:23:56.000Z (over 3 years ago)
- Last Synced: 2025-01-10T19:40:43.666Z (9 months ago)
- Topics: eslint, exif, glob, node, nvm, prettier, typescript
- Language: TypeScript
- Homepage:
- Size: 681 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nizr
A tiny Node script for organising files into date folders
## Requirements
- Node v14.15.5
- Yarn## Output Folder Format
```
2021/03 - March/
2021/02 - February/
2021/01 - January/
```## Config
The JSON config is an array of objects. Each object has the following properties
| Name | Description | Type |
| --------- | ----------------------------------------------------------------------------------------------------- | ------- |
| `inputs` | A list of input source directories. | array |
| `output` | The target directory for processed input sources. | string |
| `pattern` | (Optional) By default, no files are filtered but use a glob pattern to filter files. | string |
| `move` | (Optional) By default, files that are processed are _copied_. Set this to `true` to _move_ the files. | boolean |```sh
$ cp config.sample.json config.json
```## Running
```sh
$ yarn && yarn build
$ node dist/index.js
```