locutus

2018-12-06 admin

locutus是什么

什么是locutus,Locutus other languages' stadard libraries to JavaScript for fun and educational purposes

locutus使用教程帮助文档

Locutus

Build Status

All your standard libraries will be assimilated into our JavaScript collective. Resistance is futile.

More info at: http://locutus.io/

Install

npm install locutus

Use

vim index.js
var sprintf = require('locutus/php/strings/sprintf')
var echo = require('locutus/php/strings/echo')
var effectiveness = 'futile'
echo(sprintf('Resistance is %s', effectiveness))
var strings = require('locutus/golang/strings')
console.log(strings.Contains('Locutus', 'cut'))
$ node index.js
Resistance is futile
true

Development

Some guidelines and instructions can be found in CONTRIBUTING.md

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-47456.html

文章标题:locutus

回到顶部