Skip to content

Instantly share code, notes, and snippets.

View sarkaaa's full-sized avatar

Šárka Chwastková sarkaaa

View GitHub Profile
@jvorcak
jvorcak / humanize-duration.js
Last active July 10, 2019 14:37
Humanize duration wrapper
import React from 'react'
import humanizeDuration from "humanize-duration"
const shortEnglishHumanizer = humanizeDuration.humanizer({
language: 'shortEn',
spacer: '',
delimiter: ' ',
languages: {
shortEn: {
y: function() { return 'y' },