Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including css-time-sort with all npm packages installed. Try it out:

var cssTimeSort = require("css-time-sort")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

css-time-sort v1.0.0

Sort an array of CSS <time> values.

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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free