Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rickycodes/moonmoji
:first_quarter_moon_with_face: Return an emoji representing the current moon phase.
https://github.com/rickycodes/moonmoji
cli command-line emoji javascript moon-phase
Last synced: 2 days ago
JSON representation
:first_quarter_moon_with_face: Return an emoji representing the current moon phase.
- Host: GitHub
- URL: https://github.com/rickycodes/moonmoji
- Owner: rickycodes
- License: mit
- Created: 2014-10-16T05:00:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-11-02T15:35:22.000Z (about 4 years ago)
- Last Synced: 2024-10-31T18:19:47.543Z (9 days ago)
- Topics: cli, command-line, emoji, javascript, moon-phase
- Language: Rust
- Homepage:
- Size: 43 KB
- Stars: 86
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![moonmoji](http://i.imgur.com/BnYRgMF.png)
# moonmoji
Return an emoji representing the current moon phase.
## CLI
```sh
$ npm install --global moonmoji
```## In your bash
The main goal of this was to have the emoji display in a shell. This can be accomplished by adding the script to your `PS1` export in your `.bash_prompt` or similar, eg:
```sh
PS1=$(moonmoji);
export PS1;
```Examples:
![prompt 1](http://i.imgur.com/aTrVySn.png) ![prompt 2](http://i.imgur.com/UcGwk6F.png)
* note: If you have additional information in your `PS1` you'll need to have two spaces after the emoji character.
## Thanks
[@lauradegroot](https://github.com/lauradegroot) for inspiration
[@bwinton](https://github.com/bwinton) for pretty much authoring the whole thing
[@matiassingers](https://github.com/matiassingers) for tests!
The whole [meatspace](https://chat.meatspac.es/) community for being awesome.## Licence
MIT