https://github.com/bukinoshita/goot
:wave: Goot humanize greetings.
https://github.com/bukinoshita/goot
goot humanizer javascript nodejs time
Last synced: 4 months ago
JSON representation
:wave: Goot humanize greetings.
- Host: GitHub
- URL: https://github.com/bukinoshita/goot
- Owner: bukinoshita
- License: mit
- Created: 2017-02-07T17:01:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T14:34:37.000Z (almost 3 years ago)
- Last Synced: 2025-07-26T06:52:22.459Z (4 months ago)
- Topics: goot, humanizer, javascript, nodejs, time
- Language: JavaScript
- Homepage: https://goot.now.sh/
- Size: 220 KB
- Stars: 14
- Watchers: 1
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# goot [](https://travis-ci.org/bukinoshita/goot)
> Goot humazine greetings :wave:
## Install
```bash
$ yarn add goot
```
## Usage
```js
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
- [Behind The Product: Goot humanize greetings](https://bukinoshita.io/blog/behind-the-product-goot-humanize-greetings)
## Example
- [goot-web](https://github.com/bukinoshita/goot-web) — React example using goot
- [bu](https://github.com/bukinoshita/bu/blob/master/pages/blog/behind-the-product-goot-humanize-greetings.js#L18-L23) — Using in production on [bukinoshita.io](https://bukinoshita.io)
- [ritoplz](https://github.com/ritoplz/ritoplz/blob/master/pages/signup.js#L25-L29) — Using in production on ritoplz
## License
MIT © [Bu Kinoshita](https://bukinoshita.io)