How to use lower-case - 3 common examples

To help you get started, we’ve selected a few lower-case 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 swcarlosrj / e2e-ts-gql-workshop / server / src / utils / filters / order.ts View on Github external
export default query => {
  let order;

  if (lowerCase(query.order) === 'asc') {
    order = 1;
  } else if (lowerCase(query.order) === 'desc') {
    order = -1;
  } else {
    order = 1;
  }

  return order;
};
github spacexland / api / src / utils / filters / order.ts View on Github external
export default query => {
  let order;

  if (lowerCase(query.order) === 'asc') {
    order = 1;
  } else if (lowerCase(query.order) === 'desc') {
    order = -1;
  } else {
    order = 1;
  }

  return order;
};
github vaeum / react-material-icon-svg / gulpfile.babel.js View on Github external
$.tap(file => {
      const fileName = path.basename(file.path);
      const className = lowerCase(headerCase(fileName.replace('.js', '')));

      return gulp
        .src(`${DIST_FOLDER}/${fileName}`)
        .pipe(
          $.replace(
            'classNameString',
            `{...props} className={\`${CLASSNAME} ${CLASSNAME}-${className} \${props.className\}\`}`
          )
        )
        .pipe($.replace(/xmlns:xlink=".+?"/g, ``))
        .pipe($.replace(/xlink:href=".+?"/g, ``))
        .pipe($.replace('fill-rule=', 'fillRule='))
        .pipe($.replace('fill-opacity=', 'fillOpacity='))
        .pipe($.prettier())
        .pipe(gulp.dest(DIST_FOLDER))
        .pipe(gulp.dest(LIB_FOLDER));

lower-case

Transforms the string to lower case

MIT
Latest version published 1 year ago

Package Health Score

61 / 100
Full package analysis

Popular lower-case functions