# earlylinkgen

> Generates checkout/early links for shopify sites. Now an NPM module for developers!

Latest version **1.0.3** (published 2018-01-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install earlylinkgen
pnpm add earlylinkgen
yarn add earlylinkgen
bun add earlylinkgen
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-01-10 |
| First published | 2018-01-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | aarock1234 |

## Links

- npm: https://www.npmjs.com/package/earlylinkgen
- npm.io page: https://npm.io/package/earlylinkgen

## Dependencies (4)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [promise](https://npm.io/package/promise.md) ^8.0.1
- [request](https://npm.io/package/request.md) ^2.83.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.2

## Recent versions

- 1.0.3 (latest) — 2018-01-10
- 1.0.2 — 2018-01-10
- 1.0.1 — 2018-01-10
- 1.0.0 — 2018-01-10

## README

# Early Link Generator
Generates checkout/early links for shopify sites. Now an NPM module for developers!

## Requirements
| Requirement | Version |
| ---|---|
| Node | ^8.8.0 |
| NPM | ^5.5.1 |
| Git | ^2.15.0

## Script Installation

### Step 1.<br>
Type in console/terminal: ``git clone https://github.com/aarock1234/earlylinkgenerator``

### Step 2.<br>
Type in console/terminal: ``npm i``

### Step 3.<br>
Open the config.json file in the directory you cloned the repository in and put in a product in the "link" section.

### Step 4.<br>
Type in console/terminal: ``node script.js``
It should print all early/checkout links for that product.

## NPM Module Installation

### Step 1.<br>
Type in console/terminal: ``npm i earlylinkgenerator``

### Step 2.<br>
Use this example code to run it.

```javascript
const api = require('earlylinkgenerator');

links = ['array of links']

api.generate(links, (earlylinks, error) => {
  if (error) {
    console.log(error);
  } else {
    console.log(earlylinks);
  }
})```

---
_Source: https://npm.io/package/earlylinkgen · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
