Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    voicebox-karaokepublic

    voicebox

    This module implements the voicebox api. Voicebox is a sweet karaoke joint in Portland.

    example

    Bump your own song to the top of the queue.

    var vb = require('voicebox')('RRLK');
    vb.search('dude', function (err, res) {
        vb.bump(res[0].id);
    });

    methods

    var voicebox = require('voicebox')

    var vb = voicebox(roomId)

    Create a new voicebox instance to fuck with rooms.

    vb.search(query, cb)

    Search for songs, firing cb(err, results).

    vb.getQueue(cb)

    Get the queue for the room as cb(err, queue).

    vb.clearQueue(cb)

    Clear the queue in a room because the people around you have terrible taste.

    vb.addSong(id)

    Add a song the regular way like a normal person.

    vb.bump(id)

    Bump your song to the top of the queue because you know how to use APIs.

    vb.deleteItem(index)

    Delete a song that sucks from the queue.

    install

    With npm do:

    npm install voicebox-karaoke
    

    license

    MIT

    Keywords

    none

    install

    npm i voicebox-karaoke

    Downloadsweekly downloads

    6

    version

    0.0.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar