vibd

0.0.3 • Public • Published



vibd



kind of like the beets cli but distributed and portable accross node.js and browsers

table of contents

install

with npm

globally: npm install -g vibd

as a module: npm install vibd --save

usage

Usage: vibd 

commands:

  import
  list
  remove
  modify
  move
  update
  write
  stats
  fields
  config

api

var Library = require('vibd')

Class: Library

represents a database containing songs, which are Item instances.

library.items(query, sort)

get Item objects matching the query.

library.get(id)

fetch an Item by its ID. Returns None if no match is found.

library.add(item)

add the Item object to the library database. returns the object’s new id.

Class: Model

represents an object in the database.

model.keys()

get a list of available keys for objects of this type.

model.get(key)

model.items()

model.load()

model.remove()

model.set(key)

models.update(values)

Class: Item

represents songs

Item.from(path)

Item.from(stream)

Item.from(buffer)

returns an item instance.

item.read(mediaFile)`

item.write(mediaFile)

Class: AudioFile

represents an audio file and provides access to its data.

audioFile.relativePath(library)

audioFile.absolutePath(storage)

returns the path in the library directory on a given storage designated for the item.

Class: Storage

represents a storage medium where a MediaFile can be saved.

prior art

see also

License

Apache License 2.0

Readme

Keywords

Package Sidebar

Install

npm i vibd

Weekly Downloads

1

Version

0.0.3

License

Apache-2.0

Last publish

Collaborators

  • kareniel