This package has been deprecated

Author message:

use jsr version instead: https://jsr.io/@ryoppippi/str-fns

str-fns
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

str-fns

.github/workflows/ci.yaml codecov

JSR JSR Score

npm version

A collection of type-safe string functions written in pure TypeScript.

Why str-fns

  • I copy and paste useful functions from my notepad for every project using TypeScript/JavaScript. This library is a library of those functions.
  • I need some useful functions to deal with string types in my projects. This library is a collection of those functions with type-safety.

API

  • capitalize - Capitalize the first letter of a string.
  • uncapitalize - Uncapitalize the first letter of a string.
  • uppercase - Convert a string to uppercase.
  • lowercase - Convert a string to lowercase.
  • split - Split a string into substrings using the specified separator and return them as an array.
  • concat - Concatenate strings.

Related Works

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i str-fns

Weekly Downloads

358

Version

0.1.1

License

MIT

Unpacked Size

26.7 kB

Total Files

48

Last publish

Collaborators

  • ryoppippi