123456789101112131415161718192021222324252627 |
- 'use strict';
- const Conf = require('conf');
- const pkg = require('../package.json');
- const schema = {
- concurrency: {
- type: 'number',
- maximum: 99,
- minimum: 1,
- default: 4,
- },
- saveLayout: {
- type: 'object',
- default: {
- root: 'Music',
- playlistRoot: 'Playlist',
- path: '{ALB_ART_NAME} - {ALB_TITLE}',
- file: '{SNG_TITLE_VERSION}',
- trackNumber: true,
- },
- },
- };
- const config = new Conf({ schema, projectName: pkg.name, projectVersion: pkg.version });
- module.exports = config;
|