0.1.8 • Published 6 months ago

ecma-detector v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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

6 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago