1.0.0 • Published 3 years ago
es-versions v1.0.0
Get all ECMAScript versions, or the ECMAScript version that was ratified on a specific date.
Usage
import { getESVersion, getAllESVersions } from 'es-versions'
// results for 2020-11-03
// get the ratified ECMAScript version for the current date
console.log(getESVersion()) // ES2020
// get the ratified ECMAScript version at this time last year
console.log(getESVersion(getDateWithYearOffset(-1))) // ES2019
// get all the ratified ECMAScript versions so far
console.log(getAllESVersions()) /* [
'ES1',
'ES2',
'ES3',
'ES5',
'ES2015',
'ES2016',
'ES2017',
'ES2018',
'ES2019',
'ES2020',
] */
Want to get the Node.js versions, or get the ECMAScript version for a Node.js version? If so, refer to the @bevry/node-versions package.
npm
Skypack
<script type="module">
import * as pkg from '//cdn.skypack.dev/es-versions@^1.0.0'
</script>
unpkg
<script type="module">
import * as pkg from '//unpkg.com/es-versions@^1.0.0'
</script>
jspm
<script type="module">
import * as pkg from '//dev.jspm.io/es-versions@1.0.0'
</script>
Discover the release history by heading on over to the HISTORY.md file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
No contributors yet! Will you be the first?
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
Unless stated otherwise all works are:
and licensed under:
1.0.0
4 years ago