# meaningless

> Write meaningful JavaScript by using real life words like yes/no, on/off instead of booleans

Latest version **1.0.0** (published 2018-12-22) · GPL-3.0 license · 0 weekly downloads

## Install

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

## 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 | 2018-12-22 |
| First published | 2018-12-22 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Tamal Anwar |
| Maintainers | tamalanwar |

## Links

- npm: https://www.npmjs.com/package/meaningless
- Repository: https://github.com/tamalanwar/meaningless
- Homepage: https://github.com/tamalanwar/meaningless#readme
- Issues: https://github.com/tamalanwar/meaningless/issues
- npm.io page: https://npm.io/package/meaningless

## Recent versions

- 1.0.0 (latest) — 2018-12-22

## README

# Meaningless

Write meaningful JavaScript by using real life words like yes/no, on/off instead of booleans.

Install:

`npm install meaningless`

Include:

`require('meaningless');`

Use:

`let lampStatus = off;`

It's a really small library which turns some common words into boolean true and false so your code can read and sound much more meaningful.

**yes -- true**

**no -- false**

**on -- true**

**off -- false**

**right -- true**

**wrong -- false**

Example code:

```let lampStatus = off;

function toggleSwitch() {
  lampStatus = lampStatus === on ? off : on;

  if (lampStatus === on) {
    // Do something
  }
}
```

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