tn1150

HFS Plus string utilities.

  • tn1150

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
tn1150
0.1.08 years ago8 years agoMinified + gzip package size for tn1150 in KB

Readme

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.