An open API service indexing awesome lists of open source software.

https://github.com/fluidtrends/lali

Local Amorphous Link Installer
https://github.com/fluidtrends/lali

amorphous downloader github installer links remote

Last synced: 3 months ago
JSON representation

Local Amorphous Link Installer

Awesome Lists containing this project

README

          



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](https://circleci.com/gh/idancali/lali.svg?style=svg)](https://circleci.com/gh/idancali/lali)

[![Module](https://img.shields.io/npm/v/lali.svg)](https://www.npmjs.com/package/lali)
[![Coverage](https://api.codeclimate.com/v1/badges/3218ab8690250b0aeeba/test_coverage)](https://codeclimate.com/github/idancali/lali/test_coverage)
[![Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com)

## Basic Usage

```
// Import Lali with default options
const lali = require('lali')

// Install an amorphous link locally
lali.link()
.install()
.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](https://github.com/sindresorhus/got) - for remote calls