{"id":22542640,"url":"https://github.com/devonchurch/chocolate-cake","last_synced_at":"2026-04-28T08:39:29.479Z","repository":{"id":33863763,"uuid":"162548422","full_name":"devonChurch/chocolate-cake","owner":"devonChurch","description":"A utility that converts standard Javascript Numbers into their spoken word String based representations","archived":false,"fork":false,"pushed_at":"2023-01-04T20:14:56.000Z","size":1080,"stargazers_count":0,"open_issues_count":16,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-14T02:34:48.745Z","etag":null,"topics":["helper","library","npm-package","typescript-library","utility"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devonChurch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-20T08:20:14.000Z","updated_at":"2020-04-27T00:35:05.000Z","dependencies_parsed_at":"2023-01-15T03:02:13.654Z","dependency_job_id":null,"html_url":"https://github.com/devonChurch/chocolate-cake","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devonChurch%2Fchocolate-cake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devonChurch%2Fchocolate-cake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devonChurch%2Fchocolate-cake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devonChurch%2Fchocolate-cake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devonChurch","download_url":"https://codeload.github.com/devonChurch/chocolate-cake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991561,"owners_count":20706126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["helper","library","npm-package","typescript-library","utility"],"created_at":"2024-12-07T13:11:50.446Z","updated_at":"2026-04-28T08:39:29.418Z","avatar_url":"https://github.com/devonChurch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chocolate Cake 🍫 🎂 🍰 🍨 😋 😵\n\n[![npm version](https://badge.fury.io/js/chocolate-cake.svg)](https://badge.fury.io/js/chocolate-cake)\n\n[![typescript](https://user-images.githubusercontent.com/15273233/40872275-a61d4660-669f-11e8-8edf-860f1947759f.png)](https://www.typescriptlang.org/) [![code style prettier](https://img.shields.io/badge/code_style-prettier-FF69A4.svg)](https://prettier.io/) [![commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\n## What 🤔\n\nA utility that converts standard Javascript `numbers` into their spoken word `string` based representations.\n\nThe system recursively iterates through a supplied `number` and builds up corresponding `string` that has accurate punctuation and formatting for direct integration into your application.\n\n**For example**, `1036` would be converted into `\"One thousand and thirty six\"`.\n\n## Why 🤓\n\nCreating _friendlier_ and more intuitive user interfaces is increasingly critical in producing an inclusive application. Utilities like this are _\"delight\"_ based enhancements that add extra polish to a given scenario.\n\n## Demo 😎\n\nTry out the [CodePen demo](https://codepen.io/DevonChurch/pen/wRemEe?editors=0010) or easily experiment inside your own application with the [Installation](https://github.com/devonChurch/chocolate-cake#installation-) and [Usage](https://github.com/devonChurch/chocolate-cake#usage-) instructions below.\n\n![chocolate-cake-standard](https://user-images.githubusercontent.com/15273233/50428372-1c4c2f80-091c-11e9-96fe-f0efb172d723.gif)\n\n## Installation 🤖\n\nInstall the module from **NPM** .\n\n```\nnpm install --save chocolate-cake\n```\n\nImport the module into your project.\n\n```javascript\nimport chocolateCake from \"chocolate-cake\";\n```\n\n## Usage 💾\n\nSimply pass in a `number` and get back the respective `string`.\n\n```javascript\nchocolateCake(1036); // One thousand and thirty six\n```\n\n### Negative Values 🎊\n\nIn release `v1.1.0` we have added support for negative values.\n\n![chocolate-cake-negative](https://user-images.githubusercontent.com/15273233/50438255-08232500-0952-11e9-8b6b-0954c46cf1ed.gif)\n\n```javascript\nchocolateCake(-3210); // Negative three thousand, two hundred and ten\n```\n\n### Decimal Values 🎉\n\nIn release `v1.1.0` we have added support for decimal values.\n\n![chocolate-cake-decimal](https://user-images.githubusercontent.com/15273233/50438254-078a8e80-0952-11e9-8238-6bdf9e164a1e.gif)\n\n```javascript\nchocolateCake(12.34); // Twelve point three, four\n```\n\n### Typescript 👍\n\nThis utility also supports Typescript\n\n![chocolate-cake-typescript](https://user-images.githubusercontent.com/15273233/50428371-1c4c2f80-091c-11e9-942f-99943d0148cb.png)\n\n### Limitations 🎛 🎚\n\nThis utility can convert values up-to-the _trillions_ increment.\n\n```javascript\nchocolateCake(123456789012345); // One hundred and twenty three trillion, four hundred and fifty six billion, seven hundred and eighty nine million, twelve thousand, three hundred and forty five\n```\n\n## License 📜\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevonchurch%2Fchocolate-cake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevonchurch%2Fchocolate-cake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevonchurch%2Fchocolate-cake/lists"}