# is-valid-variable

> Check if a token is a valid variable name

Latest version **1.0.1** (published 2023-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-valid-variable
pnpm add is-valid-variable
yarn add is-valid-variable
bun add is-valid-variable
```

## 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.1 |
| Published | 2023-05-31 |
| First published | 2023-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/is-valid-variable
- Repository: https://github.com/mafintosh/is-valid-variable
- Issues: https://github.com/mafintosh/is-valid-variable/issues
- npm.io page: https://npm.io/package/is-valid-variable

## Recent versions

- 1.0.1 (latest) — 2023-05-31
- 1.0.0 — 2023-05-31

## README

# is-valid-variable

Check if a token is a valid variable name

```
npm install is-valid-property
```

Doesn't try to follow the full spec, ie might say `false` when something should be `true`,
but will never say `true` when something should be `false`

## Usage

``` js
const isValidVariable = require('is-valid-variable')

console.log(isValidVariable('const')) // false
console.log(isValidVariable('constantin')) // true
console.log(isValidVariable('64')) // false
console.log(isValidVariable('x64')) // true
```

## License

MIT

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