Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@chopinlang/string-utils
Advanced tools
Readme
Chopin String Utilities offers a wide range of string processing and manipulation functions to handle a wide variety of text wrangling tasks. The library is the backbone of the Chopin Programming Language's String type, but it is also perfectly suitable for use in other projects.
npm install @chopinlang/string-utils
You can use the ES2015 import statement to include the package:
import * as su from "@chopinlang/string-utils";
Or if you need CommonJS you can require it:
const su = require("@chopinlang/string-utils");
Or simply import the individual functions you need:
// ES2015 import
import { camelCase, decodeUTF8, graphemes } from "@chopinlang/string-utils";
// CommonJS
const {
camelCase,
decodeUTF8,
graphemes,
} = require("@chopinlang/string-utils");
Then simply call library functions as methods on the su
object:
camelcase("++this-__is-spartaaaaa++");
// => "thisIsSpartaaaaa"
graphemes("अनुच्छेद");
// => ["अ", "नु", "च्", "छे", "द"]
decodeUTF8([0xf0, 0x9f, 0x98, 0x80, 0xf0, 0x9f, 0x98, 0x81]);
// => "😀😁"
FAQs
String manipulation and processing functions
The npm package @chopinlang/string-utils receives a total of 34 weekly downloads. As such, @chopinlang/string-utils popularity was classified as not popular.
We found that @chopinlang/string-utils demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
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.