How to use the remove-accents.remove function in remove-accents

To help you get started, we’ve selected a few remove-accents 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 DavidBabel / Switch-Backup-Rename / _switch-backup-rename.js View on Github external
originalName,
          gamesInfos.datas
        );

        if (currentGameInfo) {
          const finalName = outFormat
            .replace('{base}', originalName.trim())
            .replace('{name}', currentGameInfo.name.trim())
            .replace('{short-serial}', sanitizeSerial(currentGameInfo.serial))
            .replace('{serial}', currentGameInfo.serial.toLowerCase().trim())
            .replace('{ext}', originalExtension);

          try {
            fs.renameSync(
              cwd(file),
              cwd(cleanFileName(accents.remove(finalName)))
            );
            done = true;
          } catch (error) {
            // continue
          }
        } else {
          console.log(
            `- game infos not found in database yet for ${originalName}`
          );
        }
      }
    });
    if (done) {
github DivanteLtd / vue-storefront / core / helpers / index.ts View on Github external
export function slugify (text) {
  // remove regional characters
  text = removeAccents(text)

  return text
    .toString()
    .toLowerCase()
    .replace(/\s+/g, '-') // Replace spaces with -
    .replace(/&/g, '-and-') // Replace & with 'and'
    .replace(/[^\w-]+/g, '') // Remove all non-word chars
    .replace(/--+/g, '-') // Replace multiple - with single -
}
github DivanteLtd / vue-storefront / core / helpers / index.ts View on Github external
export function slugify (text) {
  // remove regional characters
  text = removeAccents(text)

  return text
    .toString()
    .toLowerCase()
    .replace(/\s+/g, '-') // Replace spaces with -
    .replace(/&/g, '-and-') // Replace & with 'and'
    .replace(/[^\w-]+/g, '') // Remove all non-word chars
    .replace(/--+/g, '-') // Replace multiple - with single -
}
github credija / opa / components / contact-list / contact-list.js View on Github external
.filter(obj => includes(
            RemoveAccents.remove(obj.name.toUpperCase()), 
            RemoveAccents.remove(this.searchTerm.toUpperCase())
          ) && 
          obj.group !== 'UNKNOWN');
      } else {
github credija / opa / components / contact-list / contact-list.js View on Github external
.filter(obj => includes(
            RemoveAccents.remove(obj.name.toUpperCase()), 
            RemoveAccents.remove(this.searchTerm.toUpperCase())
          ) && 
          obj.group !== 'UNKNOWN');
      } else {

remove-accents

Converting the accented characters to their corresponding non-accented ASCII characters.

MIT
Latest version published 9 months ago

Package Health Score

74 / 100
Full package analysis

Popular remove-accents functions