CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
readme.md142 linesDownload Raw Back to is-alphabetical
1# is-alphabetical2 3[![Build][build-badge]][build]4[![Coverage][coverage-badge]][coverage]5[![Downloads][downloads-badge]][downloads]6[![Size][size-badge]][size]7 8Check if a character is alphabetical.9 10## Contents11 12*   [What is this?](#what-is-this)13*   [When should I use this?](#when-should-i-use-this)14*   [Install](#install)15*   [Use](#use)16*   [API](#api)17    *   [`isAlphabetical(character|code)`](#isalphabeticalcharactercode)18*   [Types](#types)19*   [Compatibility](#compatibility)20*   [Security](#security)21*   [Related](#related)22*   [Contribute](#contribute)23*   [License](#license)24 25## What is this?26 27This is a function that checks if a given character is ASCII alphabetical:28matching `[a-z]`, case insensitive.29 30## When should I use this?31 32Not often, as it’s relatively simple to do yourself.33This package exists because it’s needed in several related packages, at which34point it becomes useful to defer to one shared function.35 36## Install37 38This package is [ESM only][esm].39In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:40 41```sh42npm install is-alphabetical43```44 45In Deno with [Skypack][]:46 47```js48import {isAlphabetical} from 'https://cdn.skypack.dev/is-alphabetical@2?dts'49```50 51In browsers with [Skypack][]:52 53```html54<script type="module">55  import {isAlphabetical} from 'https://cdn.skypack.dev/is-alphabetical@2?min'56</script>57```58 59## Use60 61```js62import {isAlphabetical} from 'is-alphabetical'63 64isAlphabetical('a') // => true65isAlphabetical('B') // => true66isAlphabetical('0') // => false67isAlphabetical('💩') // => false68```69 70## API71 72This package exports the following identifier: `isAlphabetical`.73There is no default export.74 75### `isAlphabetical(character|code)`76 77Check whether the given character code (`number`), or the character code at the78first position (`string`), is alphabetical.79 80## Types81 82This package is fully typed with [TypeScript][].83 84## Compatibility85 86This package is at least compatible with all maintained versions of Node.js.87As of now, that is Node.js 12.20+, 14.14+, and 16.0+.88It also works in Deno and modern browsers.89 90## Security91 92This package is safe.93 94## Related95 96*   [`wooorm/is-decimal`](https://github.com/wooorm/is-decimal)97*   [`wooorm/is-hexadecimal`](https://github.com/wooorm/is-hexadecimal)98*   [`wooorm/is-alphanumerical`](https://github.com/wooorm/is-alphanumerical)99*   [`wooorm/is-whitespace-character`](https://github.com/wooorm/is-whitespace-character)100*   [`wooorm/is-word-character`](https://github.com/wooorm/is-word-character)101 102## Contribute103 104Yes please!105See [How to Contribute to Open Source][contribute].106 107## License108 109[MIT][license] © [Titus Wormer][author]110 111<!-- Definitions -->112 113[build-badge]: https://github.com/wooorm/is-alphabetical/workflows/main/badge.svg114 115[build]: https://github.com/wooorm/is-alphabetical/actions116 117[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/is-alphabetical.svg118 119[coverage]: https://codecov.io/github/wooorm/is-alphabetical120 121[downloads-badge]: https://img.shields.io/npm/dm/is-alphabetical.svg122 123[downloads]: https://www.npmjs.com/package/is-alphabetical124 125[size-badge]: https://img.shields.io/bundlephobia/minzip/is-alphabetical.svg126 127[size]: https://bundlephobia.com/result?p=is-alphabetical128 129[npm]: https://docs.npmjs.com/cli/install130 131[skypack]: https://www.skypack.dev132 133[license]: license134 135[author]: https://wooorm.com136 137[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c138 139[typescript]: https://www.typescriptlang.org140 141[contribute]: https://opensource.guide/how-to-contribute/142 
basant307/AI_Governance_Project · CoolFace