unjs / magic-regexp

A compiled-away, type-safe, readable RegExp alternative
https://regexp.dev
MIT License
3.67k stars 51 forks source link

chore: add examples #370

Closed Barbapapazes closed 4 months ago

Barbapapazes commented 5 months ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

This PR add examples. In order to help users to understand how to use UnJS packages, I'm adding examples into the repo.

In the end, these examples will also be used on the website. https://github.com/unjs/website/pull/235

๐Ÿ“ Checklist

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (53937f5) to head (a52566a). Report is 7 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #370 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 7 7 Lines 629 629 Branches 65 65 ========================================= Hits 629 629 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

danielroe commented 4 months ago

I might move these into the playground in future (or maybe create an interactive playground for users)...

Let's stay in touch on this so I don't break the website examples ๐Ÿ™