Skip to main content

The char package contains function to work with characters such as isUpper, isLower, isDigit, toLower, toUpper, isWhiteSpace, isAscii, isLatin1

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
70%
Published
8 months ago (0.2.0)
class Char

Represents a unicode character (code point).

Constructors

new
Char(value: number)

Creates a new instance of Char class.

Properties

Methods

Converts the character to its string representation.

Returns the string representation of the character.

Static Properties

The maximum value of a character.

The minimum value of a character.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@gnome/char

Import symbol

import { Char } from "@gnome/char/char";

---- OR ----

Import directly with a jsr specifier

import { Char } from "jsr:@gnome/char/char";

Add Package

npx jsr add @gnome/char

Import symbol

import { Char } from "@gnome/char/char";

Add Package

yarn dlx jsr add @gnome/char

Import symbol

import { Char } from "@gnome/char/char";

Add Package

pnpm dlx jsr add @gnome/char

Import symbol

import { Char } from "@gnome/char/char";

Add Package

bunx jsr add @gnome/char

Import symbol

import { Char } from "@gnome/char/char";