0.1.8 • Published 10 months ago

ecma-detector v0.1.8

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

10 months ago

0.1.7

10 months ago

0.1.6

10 months ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago