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.
font-weight-from-name
Advanced tools
Readme
⚖ Get the font weight number from common names
import fontWeight from 'font-weight-from-name'
console.log(fontWeight('semibold')) // > 600
console.log(fontWeight('demi bold')) // > 600
// non-alpha characters are tossed, and capitalization is ignored
console.log(fontWeight('dEMi__ --- bOLD?!😉')) // > 600
⭐ Remember, capitalization and spacing doesn't matter.
Weight | Names |
---|---|
100 | hairline, thin |
200 | extralight, ultralight |
300 | light |
400 | normal, regular |
500 | medium |
600 | demibold, semibold |
700 | bold |
800 | extrabold, ultrabold |
900 | black, heavy |
Did we miss something? Create an issue and let's get it added.
With Yarn or npm installed, run:
yarn add font-weight-from-name
# ...or, if using `npm`
npm install font-weight-from-name
font-weight-from-name
was inspired by dan-gamble/postcss-font-weight-names
MIT
FAQs
> ⚖ Get the font weight number from common names
The npm package font-weight-from-name receives a total of 2 weekly downloads. As such, font-weight-from-name popularity was classified as not popular.
We found that font-weight-from-name demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.