# constant-list

> Provide a constant list definition for the most common use case (http, file extension, mime, js type, ...)

Latest version **0.0.7** (published 2015-10-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install constant-list
pnpm add constant-list
yarn add constant-list
bun add constant-list
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2015-10-29 |
| First published | 2015-10-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Karlito40 |
| Maintainers | karlito40 |
| Keywords | constant, cons |

## Links

- npm: https://www.npmjs.com/package/constant-list
- Repository: https://github.com/karlito40/constant-list
- Homepage: https://github.com/karlito40/constant-list#readme
- Issues: https://github.com/karlito40/constant-list/issues
- npm.io page: https://npm.io/package/constant-list

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads
- [@react-md/material-icons](https://npm.io/package/@react-md/material-icons.md) — 1.6K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2015-10-29
- 0.0.6 — 2015-10-22
- 0.0.5 — 2015-10-22
- 0.0.4 — 2015-10-21
- 0.0.3 — 2015-10-19
- 0.0.2 — 2015-10-08
- 0.0.1 — 2015-10-08

## README

Provide a constant list definition for the most common use case (http, file extension, ...).


## Example

```
const EXTENSION = require('constant-list').EXTENSION;

function isJavascriptFile(filename) {
  return (filename.indexOf(EXTENSION.JS) != -1);
}

```

```
const JS = require('constant-list').JS;

if(typeof true == JS.BOOLEAN) {
  console.log('is boolean');
}
```

```
const HTTP = require('constant-list').HTTP;
console.log(`page not found ${HTTP.NOT_FOUND}`)
```

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