# lbe

> cli for generating emails from images sliced from photoshop

Latest version **1.0.4** (published 2018-07-09) · MIT license · 0 weekly downloads

## Install

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

Provides the command `lbe`.

## 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.4 |
| Published | 2018-07-09 |
| First published | 2018-07-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 22.2 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zhan Peng Pan |
| Maintainers | intermsof |

## Links

- npm: https://www.npmjs.com/package/lbe
- Repository: https://github.com/Intermsof/lb-email
- Homepage: https://github.com/Intermsof/lb-email#readme
- Issues: https://github.com/Intermsof/lb-email/issues
- npm.io page: https://npm.io/package/lbe

## Dependencies (4)

- [opn](https://npm.io/package/opn.md) ^5.3.0
- [colors](https://npm.io/package/colors.md) ^1.3.0
- [commander](https://npm.io/package/commander.md) ^2.16.0
- [image-size](https://npm.io/package/image-size.md) ^0.6.3

## Recent versions

- 1.0.4 (latest) — 2018-07-09
- 1.0.3 — 2018-07-08
- 1.0.2 — 2018-07-08
- 1.0.1 — 2018-07-08
- 1.0.0 — 2018-07-08

## README

# Email Generator

A node cli that automatically generates emails from images and user inputted links.

## Requirements

* Images in each row must add up to 600px. 
* Each collumn in a row must be the same height.

### Installing

Get the latest stable version of node.js, and run

```
npm install -g lbe
```

### Usage

The first time the tool is used, you must specify a path for the cli to look for your images. I will refer to this path as the 'workingdirectory'. This will be the same path that the cli places the generated html file in. To speify this directory, cd into the desired directory, and run
```
lbe configure path
```

To generate an email, run

```
lbe email
```

The cli will prompt you to enter the date this email is for, as well as the name for the email. This name is only used for naming the folder to detect the images.

The cli will automatically open up the file explorer at the path /{workingdirectory}/{date}/{name}, where the working directory is the directory specified in step 1. Copy and paste the entire "images" folder generated by photoshop into this directory.

The cli will automatically detect when you've done the above step, and generate a "draft" html and open that up in your default browser. Use that draft as a reference to provide the links, and alternative names to the cli.

After you've done this, the cli will generate the final html, which will have the same name as the names of the images provided. This final html will be opened automatically in the browser for review.

Quit the cli by pressing ctrl-c.

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