@hyperdrives/classtab
v1.0.5
Published
Classical Guitar Tablature from classtab.org represented in SLEEP files for HyperDrive
Downloads
26
Readme
classtab
Classical Guitar Tablature HyperDrive Archive from classtab.org
https://hashbase.io/hyperdrives/classtab
Installation
$ npm install @hyperdrives/classtab
or (Github):
$ npm install hyperdrives/classtab
Usage
You can read the archive directly by simply requiring and initializing the hyperdrive with the correct public key.
const storage = require.resolve('@hyperdrives/classtab')
const classtab = require('hyperdrive')(storage, key, opts)
or using a convenient wrapper:
const classtab = require('@hyperdrives/classtab')(key, opts)
You can also leverage random-access-http to read the archive from the public Github repository.
'use strict'
const hyperdrive = require('hyperdrive')
const http = require('random-access-http')
const prefix = 'https://github.com/hyperdrives/classtab/raw/master/'
const key = '161fb2014dc31a0ba47af677307d6103843e2ad7139f7c8fcea19b1bbf35148f'
const drive = hyperdrive((filename) => http(prefix + filename), key)
classtab.readdir('/', console.log)
Archive
The ClassTab archive represents a set of tablature and MIDI files for classical guitar.
Public Key
161fb2014dc31a0ba47af677307d6103843e2ad7139f7c8fcea19b1bbf35148f
Credits
See http://www.classtab.org/credits.htm
License
GPLv3