Skip to content

Commit

Permalink
Readme: Badges
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Oct 2, 2024
1 parent 906f348 commit a3aab55
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
</a>
<br><br>

[![build status](https://github.com/slevithan/regex/workflows/CI/badge.svg)](https://github.com/slevithan/regex/actions)
[![npm](https://img.shields.io/npm/v/regex)](https://www.npmjs.com/package/regex)
[![bundle size](https://deno.bundlejs.com/badge?q=regex&treeshake=[*])](https://bundlejs.com/?q=regex&treeshake=[*])
[![build status][build-src]][build-href]
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![bundle][bundle-src]][bundle-href]
</div>

`regex` is a template tag that extends JavaScript regular expressions with key features from other leading regex libraries that make regexes more powerful and dramatically more readable. It returns native `RegExp` instances that run with native performance, and can exceed the performance of regex literals you'd write yourself. It's also lightweight, has no dependencies, supports all ES2025 regex features, has built-in TypeScript declarations, and can be used as a [Babel plugin](https://github.com/slevithan/babel-plugin-transform-regex) to avoid any runtime dependencies or user runtime cost.
Expand Down Expand Up @@ -834,3 +835,14 @@ The alternative syntax isn't used because it has several disadvantages:
If you want to support this project, I'd love your help by contributing improvements, sharing it with others, or [sponsoring](https://github.com/sponsors/slevithan) future development.
© 2024–present. MIT License.
<!-- Badges -->
[build-src]: https://github.com/slevithan/regex/workflows/CI/badge.svg
[build-href]: https://github.com/slevithan/regex/actions
[npm-version-src]: https://img.shields.io/npm/v/regex?color=78C372
[npm-version-href]: https://npmjs.com/package/regex
[npm-downloads-src]: https://img.shields.io/npm/dm/regex?color=78C372
[npm-downloads-href]: https://npmjs.com/package/regex
[bundle-src]: https://img.shields.io/bundlephobia/minzip/regex?color=78C372&label=minzip
[bundle-href]: https://bundlephobia.com/result?p=regex
2 changes: 1 addition & 1 deletion src/regex.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ function unmarkEmulationGroups(expression) {
}

export {
regex,
pattern,
regex,
rewrite,
};

0 comments on commit a3aab55

Please sign in to comment.