How to use the nopt.clean function in nopt

To help you get started, we’ve selected a few nopt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github orchoban / react.cordova / node_modules / npm / lib / config / core.js View on Github external
function validate (cl) {
  // warn about invalid configs at every level.
  cl.list.forEach(function (conf) {
    nopt.clean(conf, configDefs.types)
  })

  nopt.clean(cl.root, configDefs.types)
}
github graalvm / graaljs / deps / npm / lib / config / core.js View on Github external
function validate (cl) {
  // warn about invalid configs at every level.
  cl.list.forEach(function (conf) {
    nopt.clean(conf, configDefs.types)
  })

  nopt.clean(cl.root, configDefs.types)
}
github liquidg3 / altair / node_modules / npm / lib / config / core.js View on Github external
function validate (cl) {
  // warn about invalid configs at every level.
  cl.list.forEach(function (conf) {
    nopt.clean(conf, configDefs.types)
  })

  nopt.clean(cl.root, configDefs.types)
}
github beautify-web / js-beautify / js / src / cli.js View on Github external
function cleanOptions(data, types) {
    nopt.clean(data, types);
    return data;
}
github beautify-web / js-beautify / js / lib / cli.js View on Github external
function cleanOptions(data, types) {
    nopt.clean(data, types);
    return data;
}
github npm / npmconf / npmconf.js View on Github external
cl.list.forEach(function (conf) {
    nopt.clean(conf, configDefs.types)
  })
github mcongrove / ChariTi / package / beautify / cli.js View on Github external
function cleanOptions(data, types) {
    nopt.clean(data, types);
    return data;
}

nopt

Option parsing for Node, supporting types, shorthands, etc. Used by npm.

ISC
Latest version published 2 months ago

Package Health Score

92 / 100
Full package analysis