@types/fold-to-ascii
TypeScript icon, indicating that this package has built-in type declarations

5.0.2 • Public • Published

Installation

npm install --save @types/fold-to-ascii

Summary

This package contains type definitions for fold-to-ascii (https://github.com/mplatt/fold-to-ascii).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fold-to-ascii.

index.d.ts

/**
 * Replace all known non-ASCII characters with appropriate replacements,
 * replace the unknown ones with a fallback
 *
 * @param str Input string containing ASCII and/or non-ASCII characters
 * @param replacement Fallback for unknown characters in the input string
 *                    (defaults to empty string)
 */
export function foldReplacing(str?: string, replacement?: string): string;

/**
 * Replace all known non-ASCII characters with appropriate replacements,
 * maintain the unknown ones
 *
 * @param str Input string containing ASCII and/or non-ASCII characters
 */
export function foldMaintaining(str?: string): string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Morgan Zolob.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/fold-to-ascii

Weekly Downloads

3,871

Version

5.0.2

License

MIT

Unpacked Size

3.84 kB

Total Files

5

Last publish

Collaborators

  • types