# commode

> Electron-Vue based, iTunes like UI, for file tagging, restructuring, processing, and general management.

Latest version **1.4.0** (published 2022-06-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install commode
pnpm add commode
yarn add commode
bun add commode
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2022-06-26 |
| First published | 2017-10-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 388.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | fantasyui.com |
| Maintainers | fantasyui.com |

## Links

- npm: https://www.npmjs.com/package/commode
- Repository: https://github.com/fantasyui-com/commode
- Homepage: https://github.com/fantasyui-com/commode#readme
- Issues: https://github.com/fantasyui-com/commode/issues
- npm.io page: https://npm.io/package/commode

## Dependencies (1)

- [natural-sort-by-key](https://npm.io/package/natural-sort-by-key.md) ^1.1.0

## Recent versions

- 1.4.0 (latest) — 2022-06-26
- 1.3.0 — 2021-09-28
- 1.2.0 — 2019-04-26
- 1.1.0 — 2019-04-18
- 1.0.15 — 2017-11-16
- 1.0.14 — 2017-11-15
- 1.0.13 — 2017-11-15
- 1.0.12 — 2017-11-15
- 1.0.11 — 2017-11-15
- 1.0.10 — 2017-11-14
- 1.0.9 — 2017-11-14
- 1.0.8 — 2017-11-14
- 1.0.7 — 2017-11-13
- 1.0.6 — 2017-11-13
- 1.0.5 — 2017-11-09
- … 4 more at https://npm.io/package/commode/versions

## README

# commode
Electron-Vue based, iTunes like UI, for file tagging, restructuring, processing, and general management.

![](screenshot.png)
![](screenshot-0.png)
![](screenshot-1.png)
![](screenshot-2.png)

## Theory of Operation

- iTunes like view of your data
- You must prepare a directory with data.js, sort.js and filter.js
- .js before .json, program will seek a .js data file that may load json.
- You must create data.js/on based on your own data set.

## Action Handler Example (work.js)

When you hit play Promise's resolve, reject is sent to an emitter handler,
simply perform your operation and call resolve();

```JavaScript

emitter.on('example', function({app, item, name, resolve, reject }) {

  // make an indication that you are working on this item
  app.selectItem(item);

  // in this example we uppercase the name of the item...
  item.name = item.name.toUpperCase();

  setTimeout(function(){
    console.log( 'Working on %s.', name );
    // When the thing is done, call resolve...
    resolve();
  },200);


});

```

## Todo

- More samples
- drop built-in filter editor (just edit filter.js)
- maybe drop manual item editor in favor of actions?

---
_Source: https://npm.io/package/commode · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
