# attheme-js

> A small package for working with .attheme files in JavaScript.

Latest version **3.0.0** (published 2019-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install attheme-js
pnpm add attheme-js
yarn add attheme-js
bun add attheme-js
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2019-10-10 |
| First published | 2017-09-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 761.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | SnejUgal |
| Maintainers | snejugal |
| Keywords | telegram, attheme |

## Links

- npm: https://www.npmjs.com/package/attheme-js
- Repository: https://github.com/SnejUgal/attheme-js
- Homepage: https://github.com/SnejUgal/attheme-js#readme
- Issues: https://github.com/SnejUgal/attheme-js/issues
- npm.io page: https://npm.io/package/attheme-js

## Dependencies (1)

- [@snejugal/color](https://npm.io/package/@snejugal/color.md) ^2.1.1

## Recent versions

- 3.0.0 (latest) — 2019-10-10
- 2.0.0-alpha.2 (alpha) — 2018-08-04
- 2.2.4 — 2019-06-26
- 2.2.3 — 2019-06-02
- 2.2.2 — 2019-05-17
- 2.2.1 — 2019-04-08
- 2.2.0 — 2019-01-20
- 2.1.5 — 2019-01-10
- 2.1.4 — 2018-12-10
- 2.1.3 — 2018-12-10
- 2.1.2 — 2018-12-10
- 2.1.1 — 2018-11-24
- 2.1.0 — 2018-11-24
- 2.0.0 — 2018-10-31
- 1.1.2 — 2018-07-26
- … 2 more at https://npm.io/package/attheme-js/versions

## README

# `attheme-js`

A package for working with .attheme files in JavaScript. It fully supports the
.attheme format.

## Installing

```bash
npm i attheme-js
```

## Usage

```ts
import Attheme from "attheme-js";

const theme = new Attheme(`
divider=#000000
checkbox=-1

WPS
Pretend there is a cats wallpaper here
WPE
`);

console.log(theme.get(`divider`)); // { red: 0, green: 0, blue: 0, alpha: 255 }
theme.set(`checkbox`, {
  red: 255,
  green: 146,
  blue: 13,
  alpha: 7,
});
console.log(theme.get(`checkbox`)); // { red: 255, green: 146, blue: 13, alpha: 7 }

console.log(theme.getWallpaper()); // Pretend there is a cats wallpaper here

console.log(theme.toString(`hex`)); /*
divider=#ff000000
checkbox=#ffffffff

WPS
Pretend there is a cats wallpaper here
WPE

*/
```

For the API documentation and tools `attheme-js` provides out of the box, please see [the documentation section on our Wiki][documentation].

[documentation]: https://github.com/SnejUgal/attheme-js/wiki/Documentation

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