goot
v1.0.0
Published
Goot humanize greetings ๐
Downloads
6
Maintainers
Readme
goot
Goot humazine greetings :wave:
Install
$ yarn add goot
Usage
import goot from 'goot'
import spacetime from 'spacetime'
const now = spacetime().hour()
goot(now)
// => Good morning
goot(now, 'de')
// => Guten morgen
API
goot(now, language)
Returns a string
now
Type: number
Required
now
should be between 0-23
.
Eg: new Date().getHours()
(current hour)
language
Type: string
Default: en
Options: en
, pt
, es
, fr
and de
Language of the greeting to be returned
Related
Example
- goot-web โ React example using goot
- bu โ Using in production on bukinoshita.io
- ritoplz โ Using in production on ritoplz
License
MIT ยฉ Bu Kinoshita