# is-es5

> Check code is at most ES5 syntax

Latest version **1.0.1** (published 2018-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-es5
pnpm add is-es5
yarn add is-es5
bun add is-es5
```

## 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 | 2018-07-24 |
| First published | 2017-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jake Champion |
| Maintainers | jakedchampion, ungoldman |
| Keywords | es5, syntax, acorn |

## Links

- npm: https://www.npmjs.com/package/is-es5
- Repository: https://github.com/JakeChampion/is-es5
- Homepage: https://github.com/JakeChampion/is-es5#readme
- Issues: https://github.com/JakeChampion/is-es5/issues
- npm.io page: https://npm.io/package/is-es5

## Dependencies (1)

- [acorn](https://npm.io/package/acorn.md) ^5.0.3

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-07-24
- 1.0.0 — 2017-06-19

## README

# is-es5

Check code is at most ES5 syntax

## Installation

This is a [Node.js](https://nodejs.org/) module available through the
[npm registry](https://www.npmjs.com/). It can be installed using the
[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)
or
[`yarn`](https://yarnpkg.com/en/)
command line tools.

```sh
npm install is-es5 --save
```

## Usage

```js
var isES5 = require('is-es5')

var es5code = 'var x = 1'
var es6code = 'const y = 2'

isES5(es5code) // => true
isES5(es6code) // => false
```

## Tests

```sh
npm install
npm test
```

## Dependencies

- [acorn](https://ghub.io/acorn): ECMAScript parser

## Dev Dependencies

- [proclaim](https://ghub.io/proclaim): A simple assertion library for server and client side JavaScript

## License

MIT

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