Skip to content

bukinoshita/goot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goot Build Status

Goot humazine greetings πŸ‘‹

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

License

MIT Β© Bu Kinoshita

pFad - Phonifier reborn

Pfad - The Proxy pFad of Β© 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy