Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
css-color-l4
Advanced tools
Readme
css-color-l4
CSS Color Module Level 4-compliant color string parser
(forked from adroitwhiz/css-color and translated to TypeScript)
css-color-l4
is a CSS Color Module Level 4-compliant CSS color value parser.
It parses any color values defined in the CSS Color Module Level 4, and refuses
to parse any other values. This is to ensure complete consistency with, for
instance, web browsers. In comparison, most other JS color parsers both fail to
parse color values that browsers will accept.
Key points:
color()
function syntax is currently not supported.currentcolor
is currently not supported.VisitedText
) are currently not supported. (Named
colors like red
are supported)The parser function is the default export:
const parseColor = require('css-color')
npm install css-color-l4 --save
# yarn add css-color-l4
Alternatively, there are also client web builds available:
<!-- Dependencies -->
<!-- window.CSSColor -->
<script src="https://unpkg.com/css-color-l4/dist/css-color-l4.umd.js"></script>
MIT
FAQs
CSS Color Module Level 4-compliant color string parser
The npm package css-color-l4 receives a total of 37 weekly downloads. As such, css-color-l4 popularity was classified as not popular.
We found that css-color-l4 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.