4.3.0-next.1700023466.c0930f9a2ca1a86836fd8b37d0a575a7c64a03b4 • Published 2 years ago

@bevry/ecmascript-versions v4.3.0-next.1700023466.c0930f9a2ca1a86836fd8b37d0a575a7c64a03b4

Weekly downloads
-
License
Artistic-2.0
Repository
github
Last release
2 years ago

Get all ECMAScript versions, or the ECMAScript version that was ratified on a specific date.

Usage

Complete API Documentation.

import {
    getESVersionInformationByVersion,
    getESVersionByNow,
    getESVersionByDate,
    getESVersionsByNow,
} from '@bevry/ecmascript-versions'
// results for 2020-11-03

// get the ratification date for an ECMAScript version
console.log(getESVersionInformationByVersion('ES2020').ratified) // 2020-06-01T00:00:00.000Z

// get the edition number for an ECMAScript version
console.log(getESVersionInformationByVersion('ES2020').edition) // 11

// get the latest ECMAScript version that was ratified by current date
console.log(getESVersionByNow()) // ES2020

// get the latest ECMAScript version that was ratified by this time last year
console.log(getESVersionByDate(getDateWithYearOffset(-1))) // ES2019

// get all the latest ECMAScript versions that were ratified so far
console.log(getESVersionsByNow()) /* [
    'ES1',
    'ES2',
    'ES3',
    'ES5',
    'ES2015',
    'ES2016',
    'ES2017',
    'ES2018',
    'ES2019',
    'ES2020',
] */

npm

Deno

import * as pkg from 'https://unpkg.com/@bevry/ecmascript-versions@^4.3.0/edition-deno/index.ts'

Skypack

<script type="module">
    import * as pkg from '//cdn.skypack.dev/@bevry/ecmascript-versions@^4.3.0'
</script>

unpkg

<script type="module">
    import * as pkg from '//unpkg.com/@bevry/ecmascript-versions@^4.3.0'
</script>

jspm

<script type="module">
    import * as pkg from '//dev.jspm.io/@bevry/ecmascript-versions@4.3.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?

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Unless stated otherwise all works are:

and licensed under:

4.8.0

2 years ago

4.7.0

2 years ago

4.6.0

2 years ago

4.5.0

2 years ago

3.6.0

2 years ago

4.4.0

2 years ago

4.1.0

2 years ago

4.0.0

2 years ago

4.3.0

2 years ago

4.2.0

2 years ago

3.5.0

5 years ago

3.4.0

5 years ago

3.3.0

5 years ago

3.2.0

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago