https://github.com/component/humanize-keys
Humanize keys (command -> ⌘)
https://github.com/component/humanize-keys
Last synced: 9 months ago
JSON representation
Humanize keys (command -> ⌘)
- Host: GitHub
- URL: https://github.com/component/humanize-keys
- Owner: component
- Created: 2013-12-27T21:02:52.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-28T00:12:59.000Z (over 12 years ago)
- Last Synced: 2025-04-03T07:05:08.448Z (12 months ago)
- Language: JavaScript
- Size: 120 KB
- Stars: 19
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# humanize-keys
Humanize key names such as "command" and turn them into nice terse unicode chars ⌘. Shitty name
for this module since ⌘ is arguably less human-readable, but fuck it. AINT GOT TIME FOR DAT
## Installation
Install with [component(1)](http://component.io):
$ component install component/humanize-keys
## API
### humanize(key)
Pass in a `key` such as "command" and return the unicode representation or the original `key`.
## License
MIT