{"id":27390184,"url":"https://github.com/x2loreeh/convertions-helper","last_synced_at":"2025-04-13T19:39:19.669Z","repository":{"id":278085406,"uuid":"934465612","full_name":"x2loreeh/convertions-helper","owner":"x2loreeh","description":"A blazing fast utility for converting data","archived":false,"fork":false,"pushed_at":"2025-04-12T09:28:25.000Z","size":76,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T10:31:10.910Z","etag":null,"topics":["conversion","javascript","js","json","nodejs","txt","yml"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/x2loreeh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-17T22:05:54.000Z","updated_at":"2025-04-12T09:49:30.000Z","dependencies_parsed_at":"2025-02-17T23:28:12.995Z","dependency_job_id":"6c97771d-ce6f-4db8-846d-9c0fea2eb364","html_url":"https://github.com/x2loreeh/convertions-helper","commit_stats":null,"previous_names":["x2loreeh/convertions-helper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x2loreeh%2Fconvertions-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x2loreeh%2Fconvertions-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x2loreeh%2Fconvertions-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x2loreeh%2Fconvertions-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x2loreeh","download_url":"https://codeload.github.com/x2loreeh/convertions-helper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248769796,"owners_count":21158864,"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":["conversion","javascript","js","json","nodejs","txt","yml"],"created_at":"2025-04-13T19:39:19.153Z","updated_at":"2025-04-13T19:39:19.661Z","avatar_url":"https://github.com/x2loreeh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convertions Helper\nA blazing fast utility for converting data \n\n![badge1](https://img.shields.io/github/stars/x2loreeh/convertions-helper?style=flat)\n![badge2](https://img.shields.io/github/contributors/x2loreeh/convertions-helper)\n![badge3](https://img.shields.io/github/license/x2loreeh/convertions-helper)\n![badge4](https://img.shields.io/github/forks/x2loreeh/convertions-helper?style=flat)\n\n\n## Why should you switch to Convertions Helper?\nYou should switch to Convertions Helper because it is simple and fast!  Instead of using ```console.log(num + num)``` you can simply use a function like ```celsiusToFahrenheit(num)``` and it will automatically convert this into your selected measure.  Also it is a little bit faster tha the normal console.log() \n\nProofs:\n\n![test1](/images/test1.png)  Using Convertions Helper\n\n![testconsolelog](/images/testconsolelog.png) Using ```console.log()```\n\n**All these test were made on the same file, on the same machine, and runned at the same time**\n\n\n## Requirements\nFor using Convertions Helper you will need the following requirements:\n- NodeJS (Minimum v22)\n- An IDE, or a program that lets you create and modify javascript files\n- A terminal and the \"jest\" package if you want to have also the timings\n\n\n## Usage\nFor now Convertions Helper is not avaiable/working on npmjs, so the only method to make it running is downloading this repository and importing in in your project, like i wrote in [Example](#Example)\n\n\n## Avaviable Convertions\n- ✔️ Celsius to Fahrenheit (and viceversa)\n- ✔️ Celsius to Kelvin (and viceversa)\n- ✔️ Kelvin to Fahrenheit (and viceversa)\n- ✔️ Hour to Minute (and viceversa)\n- ✔️ Minute to Second (and viceversa)\n- ✔️ Hour to Second (and viceversa)\n- ✔️ Second to Hour (and viceversa)\n- ✔️ Day to Hour (and viceversa)\n- ✔️ Day to Minute (and viceversa)\n- ✔️ Minute to Day (and viceversa)\n- ✔️ Day to Seconds (and viceversa)\n- ✔️ Byte to Bit (and viceversa)\n- ✔️ Kilobyte to Bit (and viceversa)\n- ✔️ KiloByte to Byte (and viceversa)\n- ✔️ MegaByte to Bit (and viceversa)\n- ✔️ MegaByte to Byte (and viceversa)\n- ✔️ MegaByte to Kilobyte (and viceversa)\n- ✔️ Kilobyte to Megabyte (and viceversa)\n- ✔️ Bit to Kilobyte (and viceversa)\n- ✔️ Bit to Megabyte (and viceversa)\n- ✔️ String to Base64 (and viceversa)\n- ✔️ String to Hex (and viceversa)\n- ✔️ String to Byte (and viceversa)\n- ✔️ Kilograms to Ounces (and viceversa)\n- ✔️ Kilograms to Pounds (and viceversa)\n\n### Other Features\n- You can also add an emoji to your convertions to make them cooler using the function ```.addEmoji(emoji)```\n- You can save your convertions in a txt (or text) file using ```.saveConvertions()```\n  - #### Avaiable formats\n    - Text File (.txt)\n    - JSON File (.json)\n    - YAML File (.yml)\n- You can compare now two convertions using ```compareConvertions(conv1, conv2)``` and see which is the bigger one\n- You can transform big numbers into scientific notation using ```toScientificNotation(num)```, like the example below\n  ```\n  console.log(convertions.toScientificNotation(1000000000))\n  ( Result: 1.00e+9 )\n  ```\n- You can convert the items in a array using ```convertMultiples(convertion, values)```, following the example below\n  ```\n  const results = convertMultiple(hourToMinute, [1, 2, 3, 4]);\n  console.log(results.map(r =\u003e r.value));\n  ```\n\n### Example \n\n\nBefore trying to convert data using the example below, your project structure would look like this:\n```\nmy-project/\n│\n├── src/\n│   └── main.js      // Main.js need to be here\n│          \n├── testing/\n│   └── test.js      // Test files needs to be in a different folder\n│\n├── package.json     \n└── node_modules/\n```\n\n``` \nconst convertions = require('../src/main');\n\ntest('test1', () =\u003e {\nconvertions.celsiusToFahrenheit(20)\n  .addEmoji('🔥')\n  .saveConversions('json');\n\nconvertions.kilobyteToBit(1)\n  .addEmoji('💻')\n  .saveConversions('txt');\n\nconvertions.megabyteToKilobyte(5)\n  .addEmoji('📦')\n  .saveConversions('yml');\n});\n```\n\n\n## CONTRIBUTING\nFeel Free to clone the repository via Git or GitHub Desktop.  If you want to contribute, just open a pull request with your code in a different branch, I would really appreciate that!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx2loreeh%2Fconvertions-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx2loreeh%2Fconvertions-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx2loreeh%2Fconvertions-helper/lists"}