UNPKG

@pexxi/fold-to-ascii-ts

Version:

A JavaScript port of the Apache Lucene ASCII Folding Filter that converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into a ASCII equivalents, if they exist.

89 lines (53 loc) 5.14 kB
### Changelog All notable changes to this project will be documented in this file. Dates are displayed in UTC. Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### [v5.1.1](https://github.com/pexxi/fold-to-ascii-ts/compare/v5.1.0...v5.1.1) > 27 May 2020 - Add npmignore file [`4caf7f3`](https://github.com/pexxi/fold-to-ascii-ts/commit/4caf7f391adf0ded996fdeaabc3d61c14a2456da) - Add tslint config [`866bdeb`](https://github.com/pexxi/fold-to-ascii-ts/commit/866bdebc702fc3ea07e68a2c9f74731f0d02949d) - Add Travis CI config file [`cf288a8`](https://github.com/pexxi/fold-to-ascii-ts/commit/cf288a82ec9b4e2bd2cb9469913e0128525c72b0) #### [v5.1.0](https://github.com/pexxi/fold-to-ascii-ts/compare/5.0.0...v5.1.0) > 27 May 2020 - Migrate to typescript, migrate test to jest [`7f7d87d`](https://github.com/pexxi/fold-to-ascii-ts/commit/7f7d87d6c4c2b26a31ee8e42ef1824db94e21b14) - Add dist files [`b290390`](https://github.com/pexxi/fold-to-ascii-ts/commit/b290390fe7857b448e047b4de9890019994371f9) - Clean up [`c452546`](https://github.com/pexxi/fold-to-ascii-ts/commit/c452546d979fbb63bce5020625735520ea699d0f) ### [5.0.0](https://github.com/pexxi/fold-to-ascii-ts/compare/4.1.2...5.0.0) > 14 May 2019 - removed deprecated method [`47fc048`](https://github.com/pexxi/fold-to-ascii-ts/commit/47fc0486b89571cdb362f64c1eb3d4dde322fad0) #### [4.1.2](https://github.com/pexxi/fold-to-ascii-ts/compare/4.1.1...4.1.2) > 14 May 2019 - re-introduced fold(str, replacement) for backwards compatibility [`66968b7`](https://github.com/pexxi/fold-to-ascii-ts/commit/66968b7a55f8ff091534cc3141a974fd76d2d477) - when maintaining, no secondary parameter needs to be passed [`c5e009e`](https://github.com/pexxi/fold-to-ascii-ts/commit/c5e009e13150a55a2d1b7491dd9ad1c532ba45c9) #### [4.1.1](https://github.com/pexxi/fold-to-ascii-ts/compare/4.1.0...4.1.1) > 12 May 2019 - fixed readme [`b066454`](https://github.com/pexxi/fold-to-ascii-ts/commit/b06645437abdf7784197a8fffb6cdd7d9a0cfaff) #### [4.1.0](https://github.com/pexxi/fold-to-ascii-ts/compare/4.0.0...4.1.0) > 12 May 2019 - refactored folding functionality into two different functions [`4cf57c7`](https://github.com/pexxi/fold-to-ascii-ts/commit/4cf57c75f61396e421255ac26c2e69dcb6472497) - upgrade to a modern version of QUnit [`562ec81`](https://github.com/pexxi/fold-to-ascii-ts/commit/562ec811920be253e7779c20da34159898784083) - removed overly verbose test description [`292f565`](https://github.com/pexxi/fold-to-ascii-ts/commit/292f565bd855c07dc1b3030e658a5d747680093d) ### [4.0.0](https://github.com/pexxi/fold-to-ascii-ts/compare/3.0.0...4.0.0) > 28 July 2016 - static access to the folding function [`3f7f366`](https://github.com/pexxi/fold-to-ascii-ts/commit/3f7f3665e693a55d746b819588cec95ad0f65f2b) - bump major version due to api update [`a313dbc`](https://github.com/pexxi/fold-to-ascii-ts/commit/a313dbc00f208bc8aa023f3c0255e35d4799bed3) - clarified es5 usage [`7a94bda`](https://github.com/pexxi/fold-to-ascii-ts/commit/7a94bda4862470a0cde5a294bf98466cd2f5a52b) ### [3.0.0](https://github.com/pexxi/fold-to-ascii-ts/compare/2.0.2...3.0.0) > 7 May 2016 - use native ES6 features [`#4`](https://github.com/pexxi/fold-to-ascii-ts/pull/4) - deleted bogus ide file [`5868e92`](https://github.com/pexxi/fold-to-ascii-ts/commit/5868e922be51019e09c770e749371dab224f7fcc) - removed benchmarking dev dependencies [`7197f3e`](https://github.com/pexxi/fold-to-ascii-ts/commit/7197f3e4109ccdfabd1399b7bee5353054b39a5c) #### [2.0.2](https://github.com/pexxi/fold-to-ascii-ts/compare/2.0.1...2.0.2) > 26 April 2015 - - using property accessor strategy as proposed in https://github.com/mplatt/fold-to-ascii/pull/3 [`f807817`](https://github.com/pexxi/fold-to-ascii-ts/commit/f807817ed53127f80e2bf1b8154aa98d8a324005) - Merged pull request https://github.com/mplatt/fold-to-ascii/pull/3 [`09e28bb`](https://github.com/pexxi/fold-to-ascii-ts/commit/09e28bb71e1f38427dd57beadf34cb3a9564ce53) - Use object based-switch, add bench to support the idea [`fd1b8cd`](https://github.com/pexxi/fold-to-ascii-ts/commit/fd1b8cd4d01ed5eb16ba5be73304ef6607c73779) #### [2.0.1](https://github.com/pexxi/fold-to-ascii-ts/compare/2.0.0...2.0.1) > 27 February 2015 - changed default behaviour to ommit unmapped characters [`cfe0fcd`](https://github.com/pexxi/fold-to-ascii-ts/commit/cfe0fcd1020ee28a5e186493e438ed9fea3e6064) - information on npm/bower availability [`248284f`](https://github.com/pexxi/fold-to-ascii-ts/commit/248284f197bcc2485a181d304d6872129da7e391) - information on npm/bower availability [`9504b1a`](https://github.com/pexxi/fold-to-ascii-ts/commit/9504b1a3acb31bac97702520045bd7970f29e734) #### 2.0.0 > 27 February 2015 - refactored code to use module.exports to make it work with with npm [`b2f9c5f`](https://github.com/pexxi/fold-to-ascii-ts/commit/b2f9c5f52bebbfdeb95409042292f3eafbccbc18) - first draft [`3121079`](https://github.com/pexxi/fold-to-ascii-ts/commit/312107900b0775aa55751d8ca8d1693131fb25ca) - complete tests [`6d36c7d`](https://github.com/pexxi/fold-to-ascii-ts/commit/6d36c7db62e5f4fc06a3eb275729fbcef85391c3)