0.0.8 • Published 5 years ago

sometime v0.0.8

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

work-in-progress

renders html calendars using spacetime date library

npm i sometime

image

const sometime = require('sometime')
let el = document.querySelector('body')

let cal = sometime.year.weekAlign('2019')
cal.color('june 5th 2019', 'june 8th 2019', 'red')
el.innerHTML = cal.build()

byMonth() renders a typical calendar-representation:

let cal = sometime.quarter.byMonth('june 1 2019')
cal.color('june 5th 2019', 'june 8th 2019', 'red')
el.innerHTML = cal.build()

image

Output

by default, it returns html strings, but...

output is handled with Jason Miller's htm package, so it can output to a React template, or anything:

const sometime = require('sometime')
const react = require('react')

let c = sometime.year.leftAlign('2019')
c.bind(react.createElement) // anything

See also:

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago