cow-translator
JavaScript library to translate cow language 🐄 to text
Science Score: 18.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.3%) to scientific vocabulary
Keywords
Repository
JavaScript library to translate cow language 🐄 to text
Basic Info
- Host: GitHub
- Owner: SkwalExe
- License: mit
- Language: JavaScript
- Default Branch: main
- Homepage: https://new.skwal.net/cowTranslator
- Size: 2.01 MB
Statistics
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 1
- Releases: 0
Topics
Metadata Files
README.md
CowTranslator.js 🐄
JavaScript library to translate cow language 🐄 to text

jsDelivr
html
<script src="https://cdn.jsdelivr.net/gh/SkwalExe/cowTranslator.js@v1.1.0/dist/cow-translator.min.js"></script>
NPM module
Install the npm module
bash
npm install cow-translator
And import it in your project
js
const cowTranslator = require('cow-translator');
Setting up
You can import the library into you website with JsDelivr or, you can use the npm module and import it in your project.
Usage 📝
This library provides 2 functions:
- cowTranslator.cowToText : translate cow language to text
- cowTranslator.textToCow : translate text to cow language
Each of these functions returns a translationResult class :
translationResult.text: the human versiontranslationResult.cow: the cow versiontranslationResult.error: the error message if anytranslationResult.success: whether the translation was successful or nottranslationResult.warning: whether warnings were generated or not
Human to cow
Translate Hello World ! to cow language
js
let cow = cowTranslator.textToCow("Hello world !");
.cow is the cow version of the text
js
cow.cow // "mOoOoOO moooOoo mooOoOO mooOoOO mooOOOo mOOOOOo moOoOOo mooOOOo moOoooO mooOoOO mooooOO mOOOOOo MoooooO"
The translation is successful
js
cow.success // true
Cow to human
Translate "mOoOoOO moooOoo mooOoOO mooOoOO mooOOOo mOOOOOo" to human language
js
let human = cowTranslator.cowToText("mOoOoOO moooOoo mooOoOO mooOoOO mooOOOo mOOOOOo");
.text is the human version
js
human.text // "Hello"
Errors and warnings
If an error occured and the translation was not successful, the following properties are set:
translationResult.success: ⛔ falsetranslationResult.error: the error message
If warnings were generated, the following properties are set:
translationResult.warning: ⚠️ truetranslationResult.error: the warning messagetranslationResult.success: ✅ true
final
If you have any problem, don't hesitate to open an issue
Contributing
Start by forking this repository
Then clone your fork to your local machine.
git git clone https://github.com/your-username/cowTranslator.js.gitInstall dev dependencies
npm npm install --save-devCreate a new branch
git git checkout -b super-cool-featureThen make your changes
Update the changelog and version number if needed (using Semantic Versioning) ```bash
bug fix
npm version patch --no-git-tag-version
# add a new feature npm version minor --no-git-tag-version
# changes that break backwards compatibility npm version major --no-git-tag-version ```
List and correct linting errors
bash npm run lintUpdate the minified/browser version of the library
bash npm run buildOnce you're done, commit your changes and push them to the remote repository.
git git add --all git commit -m "Add super-cool-feature" git push origin super-cool-featureThen, open a pull request on GitHub from your fork.
- Go to this link
- Click compare across forks
- On the right, on
head repositoryselect your fork - And on
compareselect the branch you just created - Click on
Create Pull Requestand submit your pull request
Owner
- Name: Léopold Koprivnik
- Login: SkwalExe
- Kind: user
- Location: France
- Company: 82.66.235.227
- Website: https://skwal.net/
- Repositories: 33
- Profile: https://github.com/SkwalExe
I like programming
Citation (CITATION.md)
# Citation If you use cowTranslator.js, we would highly appreciate it if you could include the following informations in your project This is not a code license, but a way to give credit to the original author. ## Markdown ```md This project uses [cowTranslator.js](https://github.com/SkwalExe/cowTranslator.js), which was released by Léopold Koprivnik Ibghy, [@SkwalExe](https://github.com/SkwalExe/) \<skwal.net@gmail.com\> under the [MIT license](https://github.com/SkwalExe/cowTranslator.js/blob/main/LICENSE). ``` ## HTML ```html <p>This project uses <a href="https://github.com/SkwalExe/cowTranslator.js">cowTranslator.js</a>, which was released by Léopold Koprivnik Ibghy, <a href="https://github.com/SkwalExe/">@SkwalExe</a> <<a href="mailto:skwal.net@gmail.com">skwal.net@gmail.com</a>> under the <a href="https://github.com/SkwalExe/cowTranslator.js/blob/main/LICENSE">MIT license</a></p> ``` ## Plain text ``` This project uses cowTranslator.js <github.com/SkwalExe/cowTranslator.js>, which was released by Léopold Koprivnik Ibghy, @SkwalExe <skwal.net@gmail.com> under the MIT license. ```
GitHub Events
Total
- Delete event: 1
- Issue comment event: 1
- Pull request event: 2
- Fork event: 2
- Create event: 1
Last Year
- Delete event: 1
- Issue comment event: 1
- Pull request event: 2
- Fork event: 2
- Create event: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 21
- Average time to close issues: N/A
- Average time to close pull requests: 1 day
- Total issue authors: 0
- Total pull request authors: 3
- Average comments per issue: 0
- Average comments per pull request: 0.05
- Merged pull requests: 19
- Bot issues: 0
- Bot pull requests: 4
Past Year
- Issues: 0
- Pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: 18 days
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.5
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 2
Top Authors
Issue Authors
Pull Request Authors
- SkwalExe (16)
- dependabot[bot] (4)
- imgbot[bot] (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- npm 30 last-month
- Total dependent packages: 1
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
npmjs.org: cow-translator
Javascript library to translate cow language to text
- Homepage: https://github.com/SkwalExe/cowTranslator.js#readme
- License: MIT
-
Latest release: 1.1.0
published almost 4 years ago
Rankings
Maintainers (1)
Dependencies
- 247 dependencies
- browserify ^17.0.0 development
- eslint ^8.14.0 development
- uglify-js ^3.15.4 development
