{"id":21214762,"url":"https://github.com/regexhq/es6-template-regex","last_synced_at":"2025-07-10T10:30:32.891Z","repository":{"id":36211559,"uuid":"40515827","full_name":"regexhq/es6-template-regex","owner":"regexhq","description":"Regular expression for matching es6 template delimiters in a string.","archived":false,"fork":false,"pushed_at":"2017-07-01T21:34:29.000Z","size":10,"stargazers_count":16,"open_issues_count":2,"forks_count":2,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-01T04:52:05.119Z","etag":null,"topics":["es2015","es6","match","parse","regex","regular-expression","syntax","template"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/regexhq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-11T02:00:37.000Z","updated_at":"2023-05-16T01:56:03.000Z","dependencies_parsed_at":"2022-08-25T12:21:41.843Z","dependency_job_id":null,"html_url":"https://github.com/regexhq/es6-template-regex","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Fes6-template-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Fes6-template-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Fes6-template-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Fes6-template-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regexhq","download_url":"https://codeload.github.com/regexhq/es6-template-regex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225632601,"owners_count":17499822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["es2015","es6","match","parse","regex","regular-expression","syntax","template"],"created_at":"2024-11-20T21:30:39.118Z","updated_at":"2024-11-20T21:30:39.793Z","avatar_url":"https://github.com/regexhq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# es6-template-regex [![NPM version](https://img.shields.io/npm/v/es6-template-regex.svg?style=flat)](https://www.npmjs.com/package/es6-template-regex) [![NPM monthly downloads](https://img.shields.io/npm/dm/es6-template-regex.svg?style=flat)](https://npmjs.org/package/es6-template-regex) [![NPM total downloads](https://img.shields.io/npm/dt/es6-template-regex.svg?style=flat)](https://npmjs.org/package/es6-template-regex) [![Linux Build Status](https://img.shields.io/travis/regexhq/es6-template-regex.svg?style=flat\u0026label=Travis)](https://travis-ci.org/regexhq/es6-template-regex)\n\n\u003e Regular expression for matching es6 template delimiters in a string.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save es6-template-regex\n```\n\n## Usage\n\nThe main export of this module is a function that must be called:\n\n```js\nvar regex = require('es6-template-regex');\nconsole.log(regex());\n```\n\n## Example\n\n```js\nfunction interpolate(str, data) {\n  return str.replace(re(), function(m, prop) {\n    return data[prop] || prop;\n  });\n}\n\nvar str = 'foo ${bar} baz ${quux}';\nvar data = {bar: 'AAA', quux: 'BBB'};\ninterpolate(str, data);\n//=\u003e 'foo AAA baz BBB'\n```\n\n## About\n\n### Related projects\n\n* [to-regex-range](https://www.npmjs.com/package/to-regex-range): Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than… [more](https://github.com/micromatch/to-regex-range) | [homepage](https://github.com/micromatch/to-regex-range \"Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.\")\n* [unc-path-regex](https://www.npmjs.com/package/unc-path-regex): Regular expression for testing if a file path is a windows UNC file path. Can… [more](https://github.com/regexhq/unc-path-regex) | [homepage](https://github.com/regexhq/unc-path-regex \"Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.\")\n* [whitespace-regex](https://www.npmjs.com/package/whitespace-regex): Regular expression for matching the whitespace in a string. | [homepage](https://github.com/regexps/whitespace-regex \"Regular expression for matching the whitespace in a string.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 7 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [adjohnson916](https://github.com/adjohnson916) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme \u0026\u0026 verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install \u0026\u0026 npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 07, 2017._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregexhq%2Fes6-template-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregexhq%2Fes6-template-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregexhq%2Fes6-template-regex/lists"}