{"id":17659763,"url":"https://github.com/raphamorim/tzu","last_synced_at":"2025-05-07T15:03:18.213Z","repository":{"id":35211512,"uuid":"39470536","full_name":"raphamorim/tzu","owner":"raphamorim","description":"The belt of number conversion for nodejs","archived":false,"fork":false,"pushed_at":"2016-07-24T00:04:18.000Z","size":10,"stargazers_count":10,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T15:03:08.140Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/tzu","language":"JavaScript","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/raphamorim.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":"2015-07-21T21:21:23.000Z","updated_at":"2019-08-18T16:48:31.000Z","dependencies_parsed_at":"2022-07-08T14:18:30.681Z","dependency_job_id":null,"html_url":"https://github.com/raphamorim/tzu","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/raphamorim%2Ftzu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2Ftzu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2Ftzu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2Ftzu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphamorim","download_url":"https://codeload.github.com/raphamorim/tzu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252902613,"owners_count":21822260,"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-23T16:08:13.721Z","updated_at":"2025-05-07T15:03:18.149Z","avatar_url":"https://github.com/raphamorim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tzu.js\n\nThe belt of number conversion for nodejs\n\n## Install\n\n```sh\n$ npm install tzu\n```\n\n## Usage\n\n### toWords\n\nConvert modern number into **words**\n\n```javascript\nvar tzu = require('tzu');\ntzu.toWords(10234); // 'ten thousand two hundred thirty four'\n```\n\n### romanize\n\nConvert modern number to **roman number**\n\n```javascript\nvar tzu = require('tzu');\ntzu.romanize('5053'); // MMMMMLIII\n```\n\n### deromanize\n\nConvert roman number to **modern number**\n\n```javascript\nvar tzu = require('tzu');\ntzu.deromanize('MLVII'); // 1057\n```\n\n### persianize\n\nConvert modern number to **persian number**\n\n```javascript\nvar tzu = require('tzu');\ntzu.persianize(19); // ۱۹\n```\n\n### depersianize\n\nConvert persian number to **modern number**\n\n```javascript\nvar tzu = require('tzu');\ntzu.depersianize('۱'); // 1\n```\n\n## About\n\nThis module is a tribute to Sun Tzu.\n\n### Algorithms References\n\nromanize | deromanize: http://blog.stevenlevithan.com/archives/javascript-roman-numeral-converter\n\n### MIT LICENSED\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphamorim%2Ftzu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphamorim%2Ftzu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphamorim%2Ftzu/lists"}