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.
alphabets
Advanced tools
Changelog
[v2.0.4]
Fixed the X-ray entry in the NATO alphabet.
Readme
A tiny JS package that exports many different alphabets for many different use cases.
I have seen code like this:
const alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('');
Or worse:
const alphabet = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
My opinion about this: it's ugly, and it pollutes your code. Instead, why not do it like this:
import { latin } from 'alphabets';
doSomethingWithTheAlphabet(latin);
Much cleaner, right?
Install the alphabets npm module using your preferred package manager:
npm install alphabets
yarn add alphabets
pnpm add alphabets
See below for usage instructions.
Alphabet | Export name |
---|---|
Danish | danish |
Faroese | faroese |
Greek (modern) | greek |
Greek (ancient/polytonic) | greekPolytonic |
Icelandic | icelandic |
Latin (abcdefg etc.) | latin |
NATO phonetic alphabet | nato |
Norwegian | norwegian |
Russian | russian |
Swedish | swedish |
Ukrainian | ukrainian |
Replace <alphabetYouWantToUse>
with an alphabet identifier this package supports:
import { <alphabetYouWantToUse> } from 'alphabets';
or:
const alphabets = require('alphabets');
console.log(alphabets.<alphabetYouWantToUse>);
(c) 2021-2023 Romein van Buren. Licensed under the MIT license.
For the full copyright and license information, please view the LICENSE.md
file that was distributed with this source code.
FAQs
A collection of many different alphabets for many different use cases.
The npm package alphabets receives a total of 3 weekly downloads. As such, alphabets popularity was classified as not popular.
We found that alphabets demonstrated a healthy version release cadence and project activity because the last version was released less than 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.