Get unlimited public & private packages + team-based management with npm Teams.Learn more »

css-time-sort

1.0.0 • Public • Published

css-time-sort

Sort an array of CSS <time> values.

NPM Version Weekly downloads Build Status Known Vulnerabilities Dependencies Status Dependencies Status Project: Wallace

Installation

npm install css-time-sort

Usage

const cssTimeSort = require('css-time-sort')
const result = cssTimeSort(['3s', '2ms'])
 
// OR:
 
const { sortFn } = require('css-time-sort')
const result = ['3s', '2ms'].sort(sortFn)
 
// RESULT:
// => ['2ms', '3s']

Related projects

Install

npm i css-time-sort

DownloadsWeekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

3.84 kB

Total Files

4

Last publish

Collaborators

  • avatar