# @russh/standalone-less-compiler

> Standalone LESS compiler

Latest version **1.0.0** (published 2023-09-25) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @russh/standalone-less-compiler
pnpm add @russh/standalone-less-compiler
yarn add @russh/standalone-less-compiler
bun add @russh/standalone-less-compiler
```

## 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.0 |
| Published | 2023-09-25 |
| First published | 2023-09-25 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 446.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rus Sharafiev |
| Maintainers | russh |
| Keywords | LESS, compiler |

## Links

- npm: https://www.npmjs.com/package/@russh/standalone-less-compiler
- Repository: https://github.com/rus-sharafiev/less-compiler
- Homepage: https://github.com/rus-sharafiev/less-compiler#readme
- Issues: https://github.com/rus-sharafiev/less-compiler/issues
- npm.io page: https://npm.io/package/@russh/standalone-less-compiler

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2023-09-25

## README

# Standalone LESS compiler

CLI tool that uses original [Less.js](https://lesscss.org/) compiler (v4.2.0) but running inside [Deno](https://deno.com/) compiled app.  
Minimal changes were made to the compiler source code:
- added file extensions in import (required for Deno)
- fs, URL and path are replaced with the same ones from Deno Std. Library 0.202.0

Unlike the original `lessc`, the Node is not required.

## Usage
Install [Deno](https://docs.deno.com/runtime/manual/getting_started/installation), pick compiler type, ror CLI tool run
```
deno compile --allow-read --allow-write less-compiler-cli.ts
```
...for stdout run
```
deno compile --allow-read less-compiler-stdout.ts
```

### CLI tool  
Run the app, answer questions and get the CSS file (example for PowerShell)
```
PS C:\less> .\less-compiler-cli.exe
Standalone LESS compiler v1.0.0

Set source file location: test/index.less
Set outfile folder: ./ 
Set outfile name: out
Done!

Press any key to exit...
```

### Stdout (created for the [React development server](https://github.com/rus-sharafiev/dev-server))
Run app with a LESS file path as arg and get the plain css in stdout (example for PowerShell)
```
PS C:\less> .\less-compiler-stdout.exe test/index.less
```

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