Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/inspect-js/has-template-literals
- Owner: inspect-js
- License: mit
- Created: 2018-01-06T07:03:55.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2022-11-01T21:42:16.000Z (about 2 years ago)
- Last Synced: 2024-10-11T01:54:53.838Z (3 months ago)
- Topics: ecmascript, interpolation, interpoliterals, javascript, literals, quasiliterals, template
- Language: JavaScript
- Homepage:
- Size: 63.5 KB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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