# lune-test

> A local webapp to sort through screenshots

Latest version **1.0.5** (published 2024-01-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install lune-test
pnpm add lune-test
yarn add lune-test
bun add lune-test
```

Provides the command `lune-test`.

## 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.5 |
| Published | 2024-01-02 |
| First published | 2023-12-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 2.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wobblesphere |
| Maintainers | wobblesphere |

## Links

- npm: https://www.npmjs.com/package/lune-test
- Repository: https://github.com/wobblesphere/screenshot-swipe-be
- Homepage: https://github.com/wobblesphere/screenshot-swipe-be#readme
- Issues: https://github.com/wobblesphere/screenshot-swipe-be/issues
- npm.io page: https://npm.io/package/lune-test

## Dependencies (5)

- [cors](https://npm.io/package/cors.md) ^2.8.5
- [trash](https://npm.io/package/trash.md) 7.2.0
- [express](https://npm.io/package/express.md) ^4.17.1
- [commander](https://npm.io/package/commander.md) ^11.1.0
- [portfinder](https://npm.io/package/portfinder.md) ^1.0.32

## Recent versions

- 1.0.5 (latest) — 2024-01-02
- 1.0.4 — 2023-12-31
- 1.0.3 — 2023-12-31
- 1.0.2 — 2023-12-31
- 1.0.1 — 2023-12-31
- 1.0.0 — 2023-12-30

## README

# Lune

[![server-tests-and-linter](https://github.com/wobblesphere/screenshot-swipe-be/actions/workflows/main.yml/badge.svg)](https://github.com/wobblesphere/screenshot-swipe-be/actions/workflows/main.yml)
[![web-linter](https://github.com/wobblesphere/screenshot-swipe-be/actions/workflows/webMain.yml/badge.svg)](https://github.com/wobblesphere/screenshot-swipe-be/actions/workflows/webMain.yml)

<img src="/src/web/public/chinchilla_lune_cleaner.png" height="80px" width="80px" />

Local Web App for Screenshot Management

Initiated via CLI, this app opens screenshots from a specified directory. Features keyboard shortcuts and UI buttons for quick deletion or retention of screenshots. Streamlines screenshot organization.

## Requirement

- Yarn installed (`npm install --global yarn`)
- Node.js installed ([See instructions](https://nodejs.org/en/download/package-manager))
- Enabled JavaScript in the web browser

## Installation

```
npm install -g @wobblesphere/lune
```

## Usage

```
lune -d ~/Desktop
```

Running this command will open web app in browser displaying all screenshots in the provided directory

### FAQ

#### How does the app decide what files to display?

The app uses this `/^([a-zA-Z0-9\s_\\.\-\(\):])+\.(png)$/` regext pattern to filter filenames. Currently only works for `png`s.

#### What OS does the app run on?

Mac for now.

## Development

### Running server

- Make sure to set the following environment variables before running yarn start in the root directory

  - `DIRECTORY` : the directory of the screenshots you want to open the web app with
  - `DELETE_DIR` : the directory of the fake trash folder for development mode
  - `NODE_ENV`: 'dev'

    Example command: `export DIRECTORY=~/Desktop/testfolder && export DELETE_DIR=~/Desktop/delete && yarn start`

- Server default runs on port 3000, if taken port number will change

### Running web client

- Run `yarn start` under the src/web directory

- Assume server is listening on port 3000, otherwise, set environment variable `REACT_APP_SERVER_PORT` to the one the server is running on.

### Test production

- Run CLI script with directory as arguement to open local web app in production mode
- Delete files will be moved to trash can
  Example: `./src/cli/index.js -d ~/Desktop`

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