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
- Host: GitHub
- URL: https://github.com/fluidtrends/lali
- Owner: fluidtrends
- Created: 2017-05-27T14:46:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-07T13:55:50.000Z (about 6 years ago)
- Last Synced: 2025-02-10T18:32:04.292Z (12 months ago)
- Topics: amorphous, downloader, github, installer, links, remote
- Language: JavaScript
- Homepage:
- Size: 50.8 KB
- Stars: 3
- Watchers: 12
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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 [](https://circleci.com/gh/idancali/lali)
[](https://www.npmjs.com/package/lali)
[](https://codeclimate.com/github/idancali/lali/test_coverage)
[](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