1.0.5 • Published 3 years ago

@royalarchives/catalog-music v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

Top of page

Using the API with NodeJS

Top of page

License

MIT

1.0.5

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago