lali

1.0.0 • Public • Published

Lali

Local Amorphous Link Installer

Lali helps you install amorphous links locally. Lali understands an amorphous link as being a remote Tar GZip archive.


Latest Release Build

Module Coverage Style

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

Dependents (2)

Package Sidebar

Install

npm i lali

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

46.6 kB

Total Files

11

Last publish

Collaborators

  • idancali