1.0.0 • Published 4 years ago

lali v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

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
1.0.0

4 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago