tn1150

0.1.0 • Public • Published

TN1150

HFS Plus string utilities.

Usage

const tn1150 = require('tn1150')
 
// Sort filenames
filenames.sort(tn1150.compare)
 
// Normalize filename
filename = tn1150.normalize(filename)

API

tn1150.compare(lhs: string, rhs: string) -> number

Compare two strings using the algorithm from TN1150. Useful for sorting filenames.

tn1150.normalize(text: string) -> string

Normalize a string using Unicode Canonical Decomposition.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    226,373
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    226,373

Package Sidebar

Install

npm i tn1150

Weekly Downloads

226,373

Version

0.1.0

License

MIT

Last publish

Collaborators

  • linusu