Repository - API - Source
.travis.yml
: Add npm link
as before_script
package.json
: Update request
to v2.78.0
package.json
: Remove npm outdated
from npm test
wpcheck [-v | --version]
to print wpcheck
versionwpcheck
(closes #29)node
pluginyarn.lock
file.eslintrc.json
: Rename .eslintrc
.gitignore
: Remove *.lock
and .idea
README.md
: Add yarn add global
commandnode_js
v4 & v5mocha
, request
, eslint
, child-process-promise
>= 6
engines.node
to >= 6
.idea
rule[root]
prefix from install
command (#23)mocha
versioneslint
versionwpcheck --help
fileName
to lib/finder.js
file-exists.js
into sensitive-files.js
finder.js
into fs.js
mocha
and eslint
versionsnew Error()
to Promise
rejectsHOWTO.md
with WordPress security tipsfile-exists.js
rule libraryconfig/test.json
config
to the files
arraypreferGlobal
to true
url.js
as a new wpcheck
moduleapp-module-path
npm
modulehelpers.js
wpcheck
modulerequest
npm
module to v2.74.0makeAbsolute
function from helpers.jsnpm outdated
to npm test
config.json
into separate config fileshelp
functionality into lib/help.js
must
and eslint
versions--ignore-rule
skips execution of a specific rule--ignore-rule
casesmust.include
instead of must.have.string
--help
outputs supplied help textwpcheck --help
caseDefault rules
part--help
option./examples
→ ./example
sources.txt
→ sources/list.txt
repository
→ sergejmueller/wpcheck
engines.node
→ >=4
files
→ ["lib","index.js","config.json"]
prepend
helper function--bulk-file
reads sources/URLs from a filemakeAbsolute
wp-config-sample.php
sources.txt
index.js
config.json
wpcheck
User-Agent
string via --user-agent
chai
testing library by must
data
object key silent
to silentMode
node_js
v4message
to log
message.success
to log.ok
message.die
and replace by log.warn
normalizeURL
function with validUrl
checkma.tt → http://ma.tt
)-s
→ --silent
& -r
→ --rules-dir
)node_js
versions <= 4mocha: true
to env
argumentstest
folder to exclude_paths
.eslintrc
mass_threshold
to 50
sourceType: module
propertyvar
by const
when it's necessarysilent
state to message.(success|notice)
calls