{"id":20826916,"url":"https://github.com/crizmo/jng","last_synced_at":"2025-08-26T22:05:11.783Z","repository":{"id":179000771,"uuid":"662692971","full_name":"crizmo/JNG","owner":"crizmo","description":"Converts .jpg urls to .png urls and vice versa.","archived":false,"fork":false,"pushed_at":"2023-07-07T09:12:30.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T08:57:47.401Z","etag":null,"topics":["convert","jpg","png","url"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/jng","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crizmo.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}},"created_at":"2023-07-05T17:19:39.000Z","updated_at":"2023-07-07T14:27:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc27faaf-50a9-4ef8-8cbb-b8373c1046c7","html_url":"https://github.com/crizmo/JNG","commit_stats":null,"previous_names":["crizmo/jng"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crizmo/JNG","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FJNG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FJNG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FJNG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FJNG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crizmo","download_url":"https://codeload.github.com/crizmo/JNG/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FJNG/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272260589,"owners_count":24902391,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["convert","jpg","png","url"],"created_at":"2024-11-17T23:10:28.498Z","updated_at":"2025-08-26T22:05:11.736Z","avatar_url":"https://github.com/crizmo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/crizmo/JNG\"\u003e\n    \u003cimg src=\"https://cdn.discordapp.com/attachments/1126205512212553818/1126209597972164728/jngpfp.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eJNG\u003c/h3\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/jng\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/jng.svg?maxAge=3600\u0026style=for-the-badge\" alt=\"NPM version\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/jng\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/jng?style=for-the-badge\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/jng\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/jng?style=for-the-badge\" /\u003e\u003c/a\u003e\n  \u003c/p\u003e\n  \u003cp align=\"center\"\u003e\n    Convert .jpg urls to .png urls and vice versa\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/crizmo/JNG\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/crizmo/JNG\"\u003eView Demo\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/crizmo/JNG/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/crizmo/JNG/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n    \n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#functions\"\u003eFunctions\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\nConverts .jpg urls to .png urls and vice versa. \u003cbr\u003e\n- How it works \u003cbr\u003e\nImages are sent to a cloudinary server and then converted to .png or .jpg. \u003cbr\u003e\nThe package willthen return the changed url. \u003cbr\u003e\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Getting Started\n\n1. Make a account on cloudinary - https://cloudinary.com/users/register/free\n2. Copy the cloud name, api key and api secret from the cloudinary console - https://cloudinary.com/console\n3. Paste the cloud name, api key and api secret in the .env file named `CLOUD_NAME`, `API_KEY` and `API_SECRET`\n4. Check env_example file for more info - \u003ca href=\"/tests/.env_example\"\u003eenv_example\u003c/a\u003e\n7. Install the required packages - `cloudinary, dotenv, fs`\n8. Install jng using npm \u003cbr\u003e\n   ```sh\n   npm install jng\n   ```\n9. Require the package in your main file \u003cbr\u003e\n   ```JS\n   const jng = require('jng');\n   ```\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Functions\n\n```javascript\njng.init({\n    cloud_name: process.env.CLOUD_NAME,\n    api_key: process.env.API_KEY,\n    api_secret: process.env.API_SECRET\n});\n\n// Init function is used to setup the cloudinary server\n\njng.upload('tests/test.json', 'kurizu', 'png', 'anime').then(url =\u003e {\n    console.log(url);\n});\n\n```\n\n## Note\n\n1. Here tests/test.json - is the path to the image you want to send and it looks like this - \n```json\n[ \n  \"https://kurizuanime_1.jpg\", \n  \"https://kurizuanime_2.jpg\" \n]\n```\n\n2. kurizu - is the name that i want to add to the url\n3. png - is the format that i want to convert the image to\n4. anime - is the tag that i want to add to the image\n\n// Upload function uploads the image to the channel and then fetches its url\nCheck env_example file for more info - \u003ca href=\"/tests/.env_example\"\u003eenv_example\u003c/a\u003e\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Usage\n\n```javascript\nconst jng = require('jng');\nrequire('dotenv').config()\n\njng.init({\n    cloud_name: process.env.CLOUD_NAME,\n    api_key: process.env.API_KEY,\n    api_secret: process.env.API_SECRET\n});\n\njng.upload('tests/test.json', 'kurizu', 'png', 'anime').then(url =\u003e {\n    console.log(url);\n});\n\n```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n## For more information on how to use it visit\n\n- [Github](https://github.com/crizmo/JNG)\n- [Example](https://github.com/crizmo/JNG/tree/main/tests)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Roadmap\n\n- [ ] Add Changelog\n- [ ] Add Tests\n- [ ] Add Additional Templates w/ Examples\n- [ ] Add Support for more image formats\n- [ ] Documentation\n    - [ ] Website\n    - [ ] Examples\n    - [ ] Wiki\n- [ ] Add Support for more platforms\n\nSee the [open issues](https://github.com/crizmo/JNG/issues) for a full list of proposed features (and known issues).\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Contributions\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE.txt` for more information.\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Contact\nPackage Made by: `kurizu.taz` on discord \u003cbr\u003e\nGithub - [https://github.com/crizmo/JNG](https://github.com/crizmo/JNG)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrizmo%2Fjng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrizmo%2Fjng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrizmo%2Fjng/lists"}