Skip to content

Checks the ES6 compatibility from an `User-Agent` string.

License

Notifications You must be signed in to change notification settings

esm-dev/esm-compat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esm-compat

Check the ES module compatibility of a browser.

Installation

npm i esm-compat

Usage

import { getEsmaVersionFromUA } from "esm-compat"

const ua = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"
const version = getEsmaVersionFromUA(ua)
console.log(version) // => es2023

License

MIT

About

Checks the ES6 compatibility from an `User-Agent` string.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published