{"repo":"locutusjs/locutus","free":true,"listed":false,"github":"https://github.com/locutusjs/locutus","clone":"git clone https://github.com/locutusjs/locutus.git","description":"Bringing stdlibs of other programming languages to TypeScript for fun","language":"TypeScript","stars":3765,"topics":["javascript","ports","programming-language","stdlib","typescript"],"license":null,"category":"dev-tools","readme_excerpt":"Locutus All your standard libraries will be assimilated into our JavaScript TypeScript collective. Resistance is futile. Locutus is 500 TypeScript implementations of standard library functions from PHP, Go, Python, Ruby, C, and more. Each function is individually importable and tree-shakeable. Most of these started as rainy Sunday afternoon puzzles. Some are genuinely useful. Some are just fun to write. All of them are a way to learn how different languages solve the same problems. Scope Locutus ports function behavior, not foreign runtime baggage. We reimplement standard-library semantics in TypeScript, but keep API boundaries JavaScript-native. That means we do not recreate alien language data structures or object models in Locutus APIs (for example: Go slices/maps, Python tuples/bytes, Ruby symbols, C structs/pointers, Perl refs). Historic exception: for PHP compatibility, plain JS objects may be treated as associative arrays when locutus.objectsAsArrays is enabled. Example: a Go date-formatting port in Locutus should accept a JavaScript Date and return a string , not a custom Go time.Time object. Install Locutus uses pragmatic versioning: patch is the default even for function-level parity fixes; see CONTRIBUTING.md#versioning for exact bump criteria. Use Bundle Size For bundle-sensitive browser builds, prefer per-function deep imports over category index imports. Good: Avoid in browser bundles: Why: - deep imports only pull the function you asked for and its real depende","default_branch":null,"files":null,"tree":[],"storefront":"/r/locutusjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/locutusjs/locutus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}