【文件属性】:
文件名称:learn-enough-palindrome
文件大小:2KB
文件格式:ZIP
更新时间:2021-04-22 16:51:10
JavaScript
短语对象(带有回文探测器)
这是一个示例NPM模块,由Michael Hartl在“创建。
该模块可以按如下方式使用:
$ npm install --global mhartl-palindrome
$ vim test.js
let Phrase = require("mhartl-palindrome");
let napoleonsLament = new Phrase("Able was I, ere I saw Elba.");
console.log(napoleonsLament.palindrome());
$ node test.js
true
【文件预览】:
learn-enough-palindrome-master
----test()
--------test.js(1KB)
----index.js(801B)
----readme.md(464B)
----package.json(605B)