{"id":16226833,"url":"https://github.com/c0bra/text2num.js","last_synced_at":"2025-04-08T04:06:07.168Z","repository":{"id":6116161,"uuid":"7344060","full_name":"c0bra/text2num.js","owner":"c0bra","description":"Convert numbers written in English to numbers","archived":false,"fork":false,"pushed_at":"2013-01-30T15:52:54.000Z","size":128,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-15T22:09:13.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c0bra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-27T18:16:51.000Z","updated_at":"2022-10-04T18:14:13.000Z","dependencies_parsed_at":"2022-08-30T18:30:43.552Z","dependency_job_id":null,"html_url":"https://github.com/c0bra/text2num.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Ftext2num.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Ftext2num.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Ftext2num.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Ftext2num.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c0bra","download_url":"https://codeload.github.com/c0bra/text2num.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773731,"owners_count":20993634,"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":[],"created_at":"2024-10-10T12:50:37.240Z","updated_at":"2025-04-08T04:06:07.145Z","avatar_url":"https://github.com/c0bra.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# text2num.js\n\nConvert English phrases to their numerical equivalent. Code translated from and embellished on: [https://github.com/ghewgill/text2num](https://github.com/ghewgill/text2num)\n\n[![Build Status](https://travis-ci.org/c0bra/text2num.js.png)](https://travis-ci.org/c0bra/text2num.js)\n\n## Installation\n\n```\nnpm install text2num\n```\n\n## Usage\n\n```\nrequire('text2num')\n\n# Simple\nnumber = text2num(\"three\")\n# number == 3\n\n# Longer\ntext2num(\"sixty thousand five hundred two\")\n# 60502\n\n# Use hyphens if you like\ntext2num(\"six-hundred three\")\n# 603\n\n# And the word \"and\"\ntext2num(\"six-hundred and three\")\n# 603\n\n# Use decimals\ntext2num(\"fifty point two\")\n# 50.2\n\ntext2num(\"fifty dot two\")\n# 50.2\n\n# Longer decimals\ntext2num(\"fifty point two hundred one\")\n# 50.201\n\ntext2num(\"fifty point two thousand and fifty two\")\n# 50.2052\n```\n\n## Additions welcome!\n\nJust send a pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0bra%2Ftext2num.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc0bra%2Ftext2num.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0bra%2Ftext2num.js/lists"}