Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/inspect-js/has-template-literals

Determine if the JS environment has template literal support
https://github.com/inspect-js/has-template-literals

ecmascript interpolation interpoliterals javascript literals quasiliterals template

Last synced: 3 months ago
JSON representation

Determine if the JS environment has template literal support

Awesome Lists containing this project

README

        

# has-template-literals [![Version Badge][npm-version-svg]][package-url]

[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][package-url]

Determine if the JS environment has template literal support.

## Example

```js
var hasTemplateLiterals = require('has-template-literals');

hasTemplateLiterals() === true; // if the environment has native template literal support.
```

## Tests
Simply clone the repo, `npm install`, and run `npm test`

[package-url]: https://npmjs.org/package/has-template-literals
[npm-version-svg]: https://versionbadg.es/inspect-js/has-template-literals.svg
[deps-svg]: https://david-dm.org/inspect-js/has-template-literals.svg
[deps-url]: https://david-dm.org/inspect-js/has-template-literals
[dev-deps-svg]: https://david-dm.org/inspect-js/has-template-literals/dev-status.svg
[dev-deps-url]: https://david-dm.org/inspect-js/has-template-literals#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/has-template-literals.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/has-template-literals.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/has-template-literals.svg
[downloads-url]: https://npm-stat.com/charts.html?package=has-template-literals
[codecov-image]: https://codecov.io/gh/inspect-js/has-template-literals/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/inspect-js/has-template-literals/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-template-literals
[actions-url]: https://github.com/inspect-js/has-template-literals/actions