0.1.8 • Published 4 months ago

ecma-detector v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

ecma-detector

Badge LICENSE Node npm version

A tool to detect ECMAScript version.

Installation

npm install ecma-detector --save

Usage

// import via esm
import { isECMAScript } from "ecma-detector";

// import via cjs
const { isECMAScript } = require("ecma-detector");
import { isECMAScript, isECMAScript2020 } from "ecma-detector";

isECMAScript("let foo = bar", "2015"); // true
isECMAScript2020("let foo = a ?? b"); // true

License

The Anti 996 License

0.1.8

4 months ago

0.1.7

4 months ago

0.1.6

4 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago