MCPcopy
hub / github.com/tj/commander.js / attributeName

Method attributeName

lib/option.js:217–222  ·  view source on GitHub ↗

* Return option name, in a camelcase format that can be used * as an object attribute key. * * @return {string}

()

Source from the content-addressed store, hash-verified

215 */
216
217 attributeName() {
218 if (this.negate) {
219 return camelcase(this.name().replace(/^no-/, ''));
220 }
221 return camelcase(this.name());
222 }
223
224 /**
225 * Set the help group heading.

Callers 13

constructorMethod · 0.80
valueFromOptionMethod · 0.80
addOptionMethod · 0.80
_prepareForParseMethod · 0.80
optsMethod · 0.80
_parseOptionsEnvMethod · 0.80
_parseOptionsImpliedMethod · 0.80
getErrorMessageMethod · 0.80
versionMethod · 0.80

Calls 2

nameMethod · 0.95
camelcaseFunction · 0.85

Tested by

no test coverage detected