{"id":13453631,"url":"https://github.com/pawurb/normit","last_synced_at":"2025-05-10T02:33:09.098Z","repository":{"id":18708357,"uuid":"21918925","full_name":"pawurb/normit","owner":"pawurb","description":"Translations with speech synthesis in your terminal as a node package","archived":true,"fork":false,"pushed_at":"2017-03-20T15:13:48.000Z","size":59,"stargazers_count":241,"open_issues_count":0,"forks_count":22,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-22T02:23:33.219Z","etag":null,"topics":["google-translate","npm","speech-synthesis","terminal","translation","translations"],"latest_commit_sha":null,"homepage":"","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/pawurb.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":"2014-07-16T21:29:49.000Z","updated_at":"2024-11-30T05:29:37.000Z","dependencies_parsed_at":"2022-09-14T02:52:40.065Z","dependency_job_id":null,"html_url":"https://github.com/pawurb/normit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawurb%2Fnormit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawurb%2Fnormit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawurb%2Fnormit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawurb%2Fnormit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pawurb","download_url":"https://codeload.github.com/pawurb/normit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253354489,"owners_count":21895436,"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":["google-translate","npm","speech-synthesis","terminal","translation","translations"],"created_at":"2024-07-31T08:00:44.715Z","updated_at":"2025-05-10T02:33:08.741Z","avatar_url":"https://github.com/pawurb.png","language":"JavaScript","readme":"# Normit [![Build Status](https://travis-ci.org/pawurb/normit.png)](https://travis-ci.org/pawurb/normit) [![NPM version](https://badge.fury.io/js/normit.svg)](http://badge.fury.io/js/normit) [![Coverage Status](https://coveralls.io/repos/pawurb/normit/badge.png?branch=master)](https://coveralls.io/r/pawurb/normit?branch=master)\n\nNormit is an easy way to translate stuff in your terminal. You can check out its Ruby gem version [termit](https://github.com/pawurb/termit).\n\n## Installation\n```bash\nnpm install normit -g\n```\n\n## Usage\n```bash\nnormit 'source_language' 'target_language' 'text'\n```\n\nExample:\n\n```bash\n\nnormit en es \"hey cowboy where is your horse?\"\n=\u003e \"Hey vaquero dónde está tu caballo?\"\n\nnormit fr en \"qui est votre papa?\"\n=\u003e \"Who's Your Daddy?\"\n```\n\nParenthesis are not necessary for text data input:\n```bash\nnormit fr ru qui est votre papa\n=\u003e \"Кто твой папочка?\"\n```\n#### Speech synthesis\n\nSpecify a **-t** (talk) flag to use speech synthesis (requires mpg123):\n``` bash\nnormit en fr \"hey cowboy where is your horse?\" -t\n=\u003e \"Hey cowboy où est votre cheval ?\" # and a french voice says something about a horse\n```\n\nYou can use normit as a speech synthesizer of any supported language without having to translate anything:\n``` bash\nnormit en en \"hold your horses cowboy !\" -t\n=\u003e \"hold your horses cowboy !\" # and an english voice asks you to hold on\n```\n\n#### Learning language when committing to git (zsh only)\nIdea by [Nedomas](https://news.ycombinator.com/item?id=7545747) . See and hear your messages translated to target lang every time you commit:\n\nIn **~/.zshrc**\n```bash\nexport LANG=es\ngit(){[[ \"$@\" = commit\\ -m* ]]\u0026\u0026normit en $LANG ${${@:$#}//./} -t;command git $@}\n```\nI am no shell ninja so if you know how to make it work in bash then please submit a PR.\n\n## Language codes:\n\nTo find all available language codes visit https://msdn.microsoft.com/en-us/library/hh456380.aspx\n\n## Requirements\n\nWorks with node 0.10.0 and higher.\n\nTo use speech synthesis you need to have mpg123 installed.\n\nFor Ubuntu:\n\n    sudo apt-get install mpg123\n\nFor MacOSX:\n\n    brew install mpg123\n\nFor Windows: [Download Site](https://www.mpg123.de/download.shtml) or  [Direct Download mpg123-1.24.0-x86-64.zip](https://www.mpg123.de/download/win64/1.24.0/mpg123-1.24.0-x86-64.zip)\n## Status\n\nIt was rewritten to work with [Bing Translator](https://www.bing.com/translator) . Thanks to [Ragnarson](https://ragnarson.com) for supporting it !\n\n## Disclaimer\n\nNormit works by scraping the private APIs and is therefore not recommended for use in production or on a large scale.\n","funding_links":[],"categories":["Packages","包","目录","Command-line apps"],"sub_categories":["Command-line apps","命令行程序","命令行应用"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawurb%2Fnormit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawurb%2Fnormit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawurb%2Fnormit/lists"}