New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

commode

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commode - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

sample-database/data.js

2

package.json
{
"name": "commode",
"version": "1.0.11",
"version": "1.0.12",
"description": "Electron-Vue based, iTunes like UI, for file tagging, restructuring, processing, and general management.",

@@ -5,0 +5,0 @@ "main": "main.js",

@@ -7,1 +7,12 @@ # commode

![](screenshot-2.png)
## Theory of Operation
- 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.
## What you get
- iTunes like view of your data
-

@@ -1,7 +0,2 @@

// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
// $('#exampleModal').modal({})
const path = require('path');
const byKey = require('natural-sort-by-key');

@@ -90,48 +85,10 @@

[
{ name: 'Natural', icon:'sort-alpha-asc', sorter: list => list.sort(byKey('name')) },
{ name: 'Reverse', icon:'sort-alpha-desc', sorter: list => list.sort(byKey('name')).reverse() },
].forEach( i => this.sorters.push(i) );
let dir = path.resolve('./sample-database');
[
require(path.join(dir,'sort.js')).forEach( i => this.sorters.push(i) );
require(path.join(dir,'filter.js')).forEach( i => this.filters.push(i) );
require(path.join(dir,'data.js')).forEach( i => this.db.push(i) );
{ name: 'Radio', filter: i => i.tags.indexOf('Radio')!= -1 },
{ name: 'Audiobooks', filter: i => i.tags.indexOf('Audiobook')!=-1 },
{ name: 'Music', filter: i => i.tags.indexOf('Music')!= -1 },
{ name: 'Movies', filter: i => i.tags.indexOf('Movies')!=-1 },
{ name: 'Radio & Audiobooks', filter: i => (['Radio','Audiobook'].map(j=>i.tags.indexOf(j)).filter(j=>j>-1).length>0) },
].forEach( i => this.filters.push(i) );
[
{ name: 'Podcast with Ads', tags: ['Radio']},
{ name: 'Man\'s Search for Meaning', tags: ['Audiobook']},
{ name: 'Wanted', tags: ['Movies']},
{ name: '1 Sort Test', tags: ['Music']},
{ name: '10 Sort Test', tags: ['Music']},
{ name: '2 Sort Test', tags: ['Music']},
{ name: '20 Sort Test', tags: ['Music']},
{ name: '101 Sort Test', tags: ['Music']},
{ name: 'Wolfsheim - Once In A Lifetime', tags: ['Music']},
{ name: 'Depeche Mode - Enjoy The Silence', tags: ['Music']},
{ name: 'Apoptygma Berzerk - Kathy\'s Song', tags: ['Music']},
{ name: 'And One - Wasted', tags: ['Music']},
{ name: 'Blaq Audio - Stiff Kitttens', tags: ['Music']},
{ name: 'Stromkern - Stand Up', tags: ['Music']},
{ name: 'Rotersand - I Don\'t Know', tags: ['Music']},
{ name: 'Ladytron - Destroy Everything You Touch', tags: ['Music']},
{ name: 'Bjork - Army of Me', tags: ['Music']},
{ name: 'Nine Inch Nails - Closer', tags: ['Music']},
].forEach( i => this.db.push(i) );
},

@@ -138,0 +95,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc