Lali helps you install amorphous links locally. Lali understands an amorphous link as being a remote Tar GZip archive.
// 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
})
Creates a reference to an amorphous link.
Example:
const link = lali.link('http://some/url/goes/here.tar.gz')
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
})
Lali makes use of the following libraries:
- got - for remote calls