1.0.5 • Published 3 years ago
@royalarchives/catalog-music v1.0.5
Library: Music
A module for Library that indexes the files and extracts MP3
and FLAC
tracks and uses Music-MetaData to read embedded information.
Songs, albums, genres, and any persons associated with them are indexed into library.tracks
, .library.albums
, library.genres
, and library.<persontype>
arrays that can be sorted, filtered and paginated using the API.
Documentation
How to use
First install the module with NPM
:
$ npm install @royalarchives/library-music
If you are using Library from the command-line include the module name in your arguments:
$ node scanner.js @royalarchives/library-music /path/to-music
If you are using Library with NodeJS include the module name in the parameters:
const Library = require('@royalarchives/library')
await Library.scan('@royalarchives/library-music', [
'/music-1/music',
'/music-2/music',
'/music-3/music'
])
Index data structure
Using the API with NodeJS
License
MIT