How to use the camelize function in camelize

To help you get started, we’ve selected a few camelize 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 styled-components / css-to-react-native / src / index.js View on Github external
export const getPropertyName = propName => {
  const isCustomProp = /^--\w+/.test(propName)
  if (isCustomProp) {
    return propName
  }
  return camelizeStyleName(propName)
}
github zendesk / linksf / core / firebaseRestAPI.js View on Github external
function ensureDefaultsForLocation(location) {
  const defaultLocation =
    R.merge(LOCATION_SCHEMA, camelize(location))
  const defaultServices = defaultLocation.services
  if (defaultServices) {
    Object.keys(defaultServices).forEach(serviceId => {
      defaultServices[serviceId] = ensureDefaultsForService(defaultServices[serviceId])
    })
  }
  return R.merge(defaultLocation, { services: defaultServices })
}
github zendesk / linksf / core / firebaseRestAPI.js View on Github external
    .then(location => ensureDefaultsForLocation(camelize(location)))
}
github forivall / tacoscript / packages / tacoscript / src / cli / transform.js View on Github external
parseArgs(argv) {
    const comalUnknownOptionNames = [];
    const minimistOpts = argsWithComalOpts(comalCoreOptions, {
      ...this.opts,
      default: {...this.defaults, ...this.opts.default},
      unknown(arg) {
        const match = /^--([^=]+)=/.exec(arg) || /^--(?:no-)?(.+)/.exec(arg);
        if (match) comalUnknownOptionNames.push(match[1]);
      }
    });
    const args = this.args = subarg(argv, minimistOpts);

    this.comalOpts = camelize(pick(args, comalCoreOptionNames, comalUnknownOptionNames));
  }
github EvanPurkhiser / tune-manager / app / importer / index.js View on Github external
.then(knowns => {
        store.dispatch(actions.replaceKnowns(camelize(knowns)));
      });
github zendesk / linksf / core / firebaseRestAPI.js View on Github external
function ensureDefaultsForOrganization(organization) {
  return R.merge(ORGANIZATION_SCHEMA, camelize(organization))
}
github EvanPurkhiser / tune-manager / app / importer / components / Importer / Discogs.js View on Github external
.then(json =>
        this.setState({
          results: camelize(json.results),
          isQuerying: false,
          queryFailed: false,
        })
      );
github andrewngu / sound-redux / client / src / utils / ApiUtils.js View on Github external
      json => ({ json: camelize(json) }),
      error => ({ error }))

camelize

recursively transform key strings to camel-case

MIT
Latest version published 2 years ago

Package Health Score

71 / 100
Full package analysis

Popular camelize functions