![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
hexa-color-regex
Advanced tools
A simple regex to match hexa style colors. hexa is an emerging CSS standard of using hex values to determine color and opacity. Example #fff0
and #ffffff00
would be a white color with zero opacity while #000f
and #000000ff
would be a black color with full opacity.
npm i hexa-color-regex --save
npm test
[opts]
{Object} pass strict: true
for strict modereturn
{RegExp} regexCreator().test('#abcd'); // true
regexCreator().test('color: #f0d6'); // true
regexCreator().test('#f06d06ff'); // true
regexCreator({strict: true}).test('#abcd'); // true
regexCreator({strict: true}).test('color: #abcd'); // false
Take care that test cases pass and jscs comes back with no errors. Please try to emulate code style as it exists.
This code is largely based on @tunnckoCore's hex-color-regex code and adapted for hexa.
MIT
FAQs
regex for the future spec of hexa (hex with alpha)
We found that hexa-color-regex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.