tn1150
HFS Plus string utilities
Last updated a year ago by linusu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tn1150 
SYNC missed versions from official npm registry.

TN1150

HFS Plus string utilities.

Usage

import { compare, normalize } from 'tn1150'

// Sort filenames
filenames.sort(compare)

// Normalize filename
filename = normalize(filename)

API

compare(lhs, rhs)

  • lhs (string, required)
  • rhs (string, required)
  • returns number

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

normalize(input)

  • input (string, required)
  • returns string

Normalize a string using Unicode Canonical Decomposition.

Current Tags

  • 1.0.0                                ...           latest (a year ago)

2 Versions

  • 1.0.0                                ...           a year ago
  • 0.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 2
Last Month 1
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |