{"name":"locutus","version":"2.0.31","description":"Locutus other languages' standard libraries to JavaScript for fun and educational purposes","keywords":["php","golang","c","ruby","python","js","locutus"],"homepage":"https://locutus.io","bugs":{"url":"https://github.com/locutusjs/locutus/issues"},"repository":{"type":"git","url":"git+https://github.com/locutusjs/locutus.git"},"license":"MIT","author":{"name":"Kevin van Zonneveld","email":"kevin@vanzonneveld.net"},"browser":{"child_process":false,"fs":false},"scripts":{"browser:bundle":"browserify test/browser/app.js --outfile test/browser/bundle.js","browser:watch":"budo test/browser/app.js --live --serve test/browser/bundle.js","build:dist":"babel src --out-dir dist --source-maps && cp package.json dist/","build:indices":"babel-node src/_util/cli.js reindex","build:tests:noskip":"rimraf test/generated && babel-node src/_util/cli.js writetests --noskip","build:tests":"rimraf test/generated && babel-node src/_util/cli.js writetests","build":"npm-run-all 'build:*'","injectweb":"rimraf website/source/{c,golang,php,python,ruby} && babel-node src/_util/cli.js injectweb","fix:js":"DEBUG=eslint:cli-engine eslint --fix --quiet --ext .js,.jsx,.ts,.tsx .","fix:formatting":"env DEBUG=prettier prettier --write .","fix:markdown":"remark {README,CONTRIBUTING}.md --output && prettier --write {README,CONTRIBUTING}.md","fix":"npm-run-all --serial 'fix:**'","lint:formatting":"prettier --check .","lint:js":"eslint --ext .js,.jsx,.ts,.tsx .","lint":"npm-run-all --parallel 'lint:**'","playground:start":"cd test/browser && babel-node server.js","test:languages:noskip":"yarn build:tests:noskip && cross-env DEBUG='locutus:*' mocha --require babel-register --reporter spec 'src/**/*.mocha.js' 'test/**/test-*.js'","test:languages":"yarn build:tests && cross-env DEBUG='locutus:*' mocha --require babel-register --reporter spec 'src/**/*.mocha.js' 'test/**/test-*.js'","test:module":"babel-node test/module/module.js","test:util":"mocha --require babel-register --reporter spec test/util/","test":"npm-run-all test:languages test:util test:module","website:install":"cd website && yarn","website:deploy":"cd website && yarn deploy","website:start":"cd website && yarn server","website:build":"cd website && yarn generate","website:clean":"cd website && yarn clean"},"devDependencies":{"@shopify/prettier-plugin-liquid":"^1.4.4","async":"2.6.4","babel-cli":"6.26.0","babel-core":"6.26.3","babel-eslint":"10.1.0","babel-plugin-add-module-exports":"1.0.4","babel-plugin-es6-promise":"1.1.1","babel-plugin-syntax-async-functions":"6.13.0","babel-plugin-transform-async-to-generator":"6.24.1","babel-plugin-transform-object-assign":"6.22.0","babel-preset-es2015":"6.24.1","babel-register":"6.26.0","browserify":"17.0.0","budo":"11.8.4","chai":"4","cross-env":"7.0.3","debug":"^4.3.4","es6-promise":"4.2.8","eslint":"8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard":"17.1.0","eslint-plugin-import":"2.29.1","eslint-plugin-n":"^16.6.2","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.1.1","eslint-plugin-standard":"5.0.0","esprima":"4.0.1","globby":"4.1.0","indent-string":"2.1.0","js-yaml":"4.1.0","lodash":"4.17.21","mocha":"10.4.0","npm-run-all":"^4.1.5","prettier":"^3.2.5","prettier-plugin-packagejson":"^2.4.14","remark-cli":"^12.0.0","remark-toc":"^9.0.0","rimraf":"5.0.5"},"packageManager":"yarn@4.0.1+sha224.ca5d6f5a8aecd0801adc32f775675b01961bdc2383867d36f4732a0a","engines":{"node":">= 10","yarn":">= 1"},"_id":"locutus@2.0.31","gitHead":"019f8091a2d8e616e682a2b2d5b400355f064ed0","_nodeVersion":"20.12.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-ZcywrklZyclajTZR96BenzZal3WweFq2Ov5D4IQPTWk/SEqELSYmF2/W6wxiICml4urbieuxQVcHl2T26C6ukg==","shasum":"5723999cd5d3bd12c68d5e3dd142e36dee203739","tarball":"http://registry-npm.ywwl.com/locutus/download/locutus-2.0.31.tgz","fileCount":745,"unpackedSize":2040315,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDr6mzh4g7Bias4RsRnNzU5F/6a1oT+dHbxqOaxyWuvTgIhAJ9E/4cJCoxpui6zviToZz5hO0HuvkGoEemEtzxBcMyY"}],"size":520692,"noattachment":false,"key":"/locutus/-/locutus-2.0.31.tgz"},"_npmUser":{"name":"kvz","email":"kevin@vanzonneveld.net"},"directories":{},"maintainers":[{"name":"kvz","email":"kevin@vanzonneveld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/locutus_2.0.31_1712339184385_0.8566298839391808"},"_hasShrinkwrap":false,"readme":"# Locutus\n\n> All your standard libraries will be assimilated into our JavaScript collective. Resistance is futile.\n\nWelcome to Locutus, where the boundaries of coding languages blur. We're a dedicated collective developers on a mission\nto explore the possibilities of porting standard libraries from various programming language (Go, Ruby, PHP, C) to\nJavaScript. Our journey is one of discovery, innovation, and sometimes, delightful chaos.\n\nFrom the complex to the quirky, we assimilate libraries with a spirit of curiosity and a penchant for experimentation.\nOur creations typically start as rainy Sunday afternoon puzzles, and end up ranging from groundbreaking functions that\nenhance the JavaScript ecosystem, to unique oddities that challenge the norms of coding.\n\nAs we navigate through this uncharted territory, we invite you to join us. Whether to contribute, learn, or simply\nmarvel at the wonders of cross-language integration and portability, your presence on GitHub is valued.\n\nEmbark on this journey with us at [locutus.io](https://locutus.io/).\n\nUse our creations at your own risk, and may they inspire you to push the boundaries of what's possible with JavaScript.\n\n## Table of contents\n\n- [Install](#install)\n- [Use](#use)\n- [Development](#development)\n\n## Install\n\n```bash\nyarn add locutus\n```\n\n## Use\n\n```bash\n$ vim php.js\n```\n\n```javascript\nconst sprintf = require('locutus/php/strings/sprintf')\nconst echo = require('locutus/php/strings/echo')\nconst effectiveness = 'futile'\necho(sprintf('Resistance is %s', effectiveness))\n```\n\n```bash\n$ node php.js\nResistance is futile\n```\n\n```bash\n$ vim go.js\n```\n\n```javascript\nconst strings = require('locutus/golang/strings')\nconsole.log(strings.Contains('Locutus', 'cut'))\n```\n\n```bash\n$ node go.js\ntrue\n```\n\n## Development\n\nSome guidelines and instructions can be found in [CONTRIBUTING.md](CONTRIBUTING.md)\n","publish_time":1712339184612,"_cnpm_publish_time":1712339184612,"dist-tags":{"latest":"3.0.36"}}