Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unicode-types

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unicode-types

  • 1.10.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Unicode::Types [version] [ci]

Determine the basic type of codepoints. This can be one of:

  • Graphic
  • Format
  • Control
  • Private-use
  • Surrogate
  • Noncharacter
  • Reserved

Unicode version: 16.0.0 (September 2024)

Supported Rubies: 3.3, 3.2, 3.1, 3.0

Old Rubies that might still work: 2.7, 2.6, 2.5, 2.4, 2.3, 2.X

Gemfile

gem "unicode-types"

Usage

require "unicode/types"

# All general types of a string
Unicode::Types.types("A\tb") # => ["Control", "Graphic"]

# Also aliased as .of
Unicode::Types.of("\u{FFFFF}") # => ["Noncharacter"]

# Single codepoint
Unicode::Types.type("\u{FFFFD}") # => "Reserved"

The list of types is always sorted alphabetically.

See unicode-x for more Unicode related micro libraries.

MIT License

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc