lali
v1.0.0
Published
Light Amorphous Link Installer
Downloads
3
Readme
Latest Release
Basic Usage
// Import Lali with default options
const lali = require('lali')
// Install an amorphous link locally
lali.link(<a .tar.gz link>)
.install(<local path>)
.then(() => {
// Link data is now available locally
})
.catch((error) => {
// Something went wrong and the link was not installed
})
Core API
link(url)
Creates a reference to an amorphous link.
Example:
const link = lali.link('http://some/url/goes/here.tar.gz')
Link API
install(dest)
Returns a promise
Install the link at a local destination.
Example:
lali.link('http://some/url/goes/here.tar.gz').install('/some/local/path')
.then(() => {
// Link data is now available locally
})
.catch((error) => {
// Something went wrong and the link was not installed
})
Dependencies
Lali makes use of the following libraries:
- got - for remote calls