
Security News
Socket Releases Free Certified Patches for Nuxt Security Vulnerabilities
Socket releases free Certified Patches for high-severity Nuxt vulnerabilities, including server-side remote code execution through server island props.
Locutus other languages' standard libraries to JavaScript for fun and educational purposes
All your standard libraries will be assimilated into our JavaScript collective. Resistance is futile.
Welcome to Locutus, where the boundaries of coding languages blur. We're a dedicated collective developers on a mission to explore the possibilities of porting standard libraries from various programming language (Go, Ruby, PHP, C) to JavaScript. Our journey is one of discovery, innovation, and sometimes, delightful chaos.
From the complex to the quirky, we assimilate libraries with a spirit of curiosity and a penchant for experimentation. Our creations typically start as rainy Sunday afternoon puzzles, and end up ranging from groundbreaking functions that enhance the JavaScript ecosystem, to unique oddities that challenge the norms of coding.
As we navigate through this uncharted territory, we invite you to join us. Whether to contribute, learn, or simply marvel at the wonders of cross-language integration and portability, your presence on GitHub is valued.
Embark on this journey with us at locutus.io.
Use our creations at your own risk, and may they inspire you to push the boundaries of what's possible with JavaScript.
yarn add locutus
$ vim php.js
const sprintf = require('locutus/php/strings/sprintf')
const echo = require('locutus/php/strings/echo')
const effectiveness = 'futile'
echo(sprintf('Resistance is %s', effectiveness))
$ node php.js
Resistance is futile
$ vim go.js
const strings = require('locutus/golang/strings')
console.log(strings.Contains('Locutus', 'cut'))
$ node go.js
true
Some guidelines and instructions can be found in CONTRIBUTING.md
Quick commands:
yarn check - format + lint + testyarn test:parity - cross-language verificationyarn test - full test suiteyarn lint - Biome checkyarn fix:biome - auto-fixMIT, except for src/php/bc/ and src/php/_helpers/_bc.js which are LGPL-2.1 (derived from PHP's bcmath/Libbcmath). See LICENSE for details.
Underscore is a JavaScript library that provides utility functions for common programming tasks. It offers a wide range of functions for manipulating arrays, objects, and other data types. Unlike Locutus, which ports functions from other languages, Underscore is designed specifically for JavaScript.
Lodash is a modern JavaScript utility library delivering modularity, performance, and extras. It provides a wide range of utility functions for common programming tasks, similar to Underscore but with additional features and optimizations. Lodash is focused on JavaScript and does not port functions from other languages like Locutus.
Ramda is a functional programming library for JavaScript that emphasizes immutability and side-effect-free functions. It provides a wide range of utility functions for functional programming. Unlike Locutus, which ports functions from other languages, Ramda is designed specifically for functional programming in JavaScript.
FAQs
Locutus other languages' standard libraries to JavaScript for fun and educational purposes
The npm package locutus receives a total of 662,549 weekly downloads. As such, locutus popularity was classified as popular.
We found that locutus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket releases free Certified Patches for high-severity Nuxt vulnerabilities, including server-side remote code execution through server island props.

Security News
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.