Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert numbers to words #37

Open
customcommander opened this issue Jan 31, 2021 · 1 comment
Open

Convert numbers to words #37

customcommander opened this issue Jan 31, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@customcommander
Copy link
Owner

Something like:

const spellout = require('@customcommander/tagtical');

spellout`I ate ${1} burrito`;
//=> "I ate one burrito"
@customcommander customcommander added the enhancement New feature or request label Jan 31, 2021
@customcommander
Copy link
Owner Author

customcommander commented Sep 2, 2021

This could be an option for pluralize instead of a new tag.

New options could be:

  • spellout — Boolean. If true converts numbers to words. (Default false.)
  • zero — String. Could be used to map 0 to things like "no", "none". (Default "zero".)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant