{"id":15560993,"url":"https://github.com/pb2204/convert-javascript-to-python","last_synced_at":"2025-04-23T21:47:04.109Z","repository":{"id":196594256,"uuid":"696468064","full_name":"PB2204/Convert-JavaScript-To-Python","owner":"PB2204","description":"Using this NPM package you can convert your JavaScript code to Python and then use it .","archived":false,"fork":false,"pushed_at":"2023-09-25T20:50:31.000Z","size":192,"stargazers_count":30,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T04:46:24.151Z","etag":null,"topics":["code-conversation","collaborate","communityexchange","development","ghdesktop","github","github-campus-experts","github-codespaces","github-pages","gitkraken","gitlens","hacktoberfest","javascript","javascript-library","jetbrains","learn","programming","python","student-vscode","transpiler"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/convert-js2py","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/PB2204.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-25T19:58:51.000Z","updated_at":"2024-10-03T01:01:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4cd3cf9-a1ba-47d8-8233-fc61c0f0a80a","html_url":"https://github.com/PB2204/Convert-JavaScript-To-Python","commit_stats":null,"previous_names":["pb2204/convert-javascript-to-python"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PB2204%2FConvert-JavaScript-To-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PB2204%2FConvert-JavaScript-To-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PB2204%2FConvert-JavaScript-To-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PB2204%2FConvert-JavaScript-To-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PB2204","download_url":"https://codeload.github.com/PB2204/Convert-JavaScript-To-Python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242254160,"owners_count":20097529,"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":["code-conversation","collaborate","communityexchange","development","ghdesktop","github","github-campus-experts","github-codespaces","github-pages","gitkraken","gitlens","hacktoberfest","javascript","javascript-library","jetbrains","learn","programming","python","student-vscode","transpiler"],"created_at":"2024-10-02T16:04:44.836Z","updated_at":"2025-03-06T17:31:41.101Z","avatar_url":"https://github.com/PB2204.png","language":"JavaScript","readme":"# Convert JavaScript To Python\n\nUsing this NPM package you can convert your JavaScript code to Python and then use it .\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [CLI Command](#cli-command)\n- [Project Structure](#project-structure)\n- [Limitations](#limitations)\n- [License](#license)\n- [Contributing](#contributing)\n- [Code of Conduct](#code-of-conduct)\n- [Learn More](#learn-more)\n- [Issues](#issues)\n- [Contact](#contact)\n\n## Installation\n\nProvide instructions on how to install and set up your project. Include any prerequisites and step-by-step instructions to ensure a smooth installation process.\n\n```bash\nnpm i convert-js2py\n```\n\n## Usage\n\nExplain how to use your project. Include code examples, usage scenarios, and any relevant information that can help users understand how to get started.\n\n```javascript\n// Import the convertJsToPython function from your library\nconst { translateJSToPython } = require('convert-js2py');\n\n// Define your JavaScript code that you want to convert\nconst jsCode = `\nconsole.log(\"Hello, World!\");\n`;\n\n// Use the convertJsToPython function to convert the JavaScript code to Python\nconst pythonCode = translateJSToPython(jsCode);\n\n// Print the generated Python code\nconsole.log(pythonCode);\n```\nYou can see the translated Python code in the terminal .\n\n## CLI Command\n\nIf your project includes a CLI command, provide instructions on how to use it. Include examples of how to run the command and its various options.\n\n```bash\nnpm i convert-js2py\n\n# Convert a JavaScript file to Python\njs-to-python test.js output\n```\nhere `test.js` is your input JavaScript file and `output` is the folder name where the `output.py` file will be written.\n\n## Project Structure\n\n``` bash\njs-to-python-converter/\n    ├── bin/\n    │   └── js-to-python.js\n    ├── lib/\n    │   ├── converter.js\n    │   └── index.js\n    ├── package.json\n    ├── LICENSE\n    ├── CODE_OF_CONDUCT.md\n    ├── LEARN.md\n    ├── CONTRIBUTING.md\n    └── README.md\n```\n\n## Limitations\n\nThis can't convert a complex JavaScript code into a Python code now , but we'll fix this ASAP .\n\n## License\n\nThis project is licensed under the [License Name] - see the [LICENSE](https://github.com/PB2204/Convert-JavaScript-To-Python/LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! Please read [CONTRIBUTING.md](https://github.com/PB2204/Convert-JavaScript-To-Python/CONTRIBUTING.md) for details on how to contribute to this project.\n\n## Code of Conduct\n\nPlease read [CODE_OF_CONDUCT.md](https://github.com/PB2204/Convert-JavaScript-To-Python/CODE_OF_CONDUCT.md) for our code of conduct.\n\n## Learn More\n\nVisit [LEARN.md](https://github.com/PB2204/Convert-JavaScript-To-Python/LEARN.md) for additional resources, tutorials, and documentation related to this project.\n\n## Issues\n\nIf you encounter any issues, bugs, or have questions, please open an issue on the [Issues](https://github.com/PB2204/Convert-JavaScript-To-Python/issues) page.\n\n## Contact\n\nFor further information or inquiries about this project, you can contact the developer:\n\n- Developer Name: [Pabitra Banerjee](https://pabitrabanerjee.me)\n- Email: [rockstarpabitra2204@gmail.com](mailto:rockstarpabitra2204@gmail.com)\n- GitHub: [PB2204](https://github.com/PB2204)\n\n## Happy Coding 🚀","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb2204%2Fconvert-javascript-to-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpb2204%2Fconvert-javascript-to-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb2204%2Fconvert-javascript-to-python/lists"}