Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dar5hak/equalsish
Compare strings ignoring case, punctuation, diacritics, etc.
https://github.com/dar5hak/equalsish
Last synced: 6 days ago
JSON representation
Compare strings ignoring case, punctuation, diacritics, etc.
- Host: GitHub
- URL: https://github.com/dar5hak/equalsish
- Owner: dar5hak
- License: apache-2.0
- Created: 2015-08-12T20:10:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-07T06:06:29.000Z (about 2 months ago)
- Last Synced: 2024-10-23T08:23:25.169Z (13 days ago)
- Language: JavaScript
- Size: 560 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# equalsish
> Compare strings ignoring case, punctuation, diacritics, etc.[![Travis (.org)](https://img.shields.io/travis/dar5hak/equalsish.svg?style=flat-square)](https://travis-ci.org/dar5hak/equalsish)
[![npm](https://img.shields.io/npm/v/equalsish.svg?style=flat-square)](https://www.npmjs.com/package/equalsish)
[![license](https://img.shields.io/npm/l/equalsish.svg?style=flat-square)](https://www.apache.org/licenses/LICENSE-2.0)## Install
```sh
$ npm install equalsish
```## Usage
```js
const equalsish = require('equalsish');console.log(equalsish('Node.js', 'nodejs')); // => true
console.log(equalsish('Pokémon FireRed', 'pokemon_fire-red')); // => true/* Currying */
const likeJS = equalsish('JavaScript');
console.log(likeJS('java script')); // => true;
```## License
Apache-2.0 © [Darshak Parikh](https://github.com/dar5hak)