0.5.0 • Published 5 months ago

@mojis/moji-compare v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@mojis/moji-compare

npm version npm downloads

Compare Emoji & Unicode versions

!NOTE This is based on code from omichelsen/compare-versions, but changed to work better with emoji and unicode versions.

📦 Installation

npm install @mojis/moji-compare

Usage

import { compare } from "@mojis/moji-compare";

compare("10.1.8", "10.0.4", ">"); // true
compare("10.0.1", "10.0.1", "="); // true
compare("10.1.1", "10.2.2", "<"); // true
compare("10.1.1", "10.2.2", "<="); // true
compare("10.1.1", "10.2.2", ">="); // false

📄 License

Published under MIT License.

0.5.0

5 months ago

0.4.0

6 months ago

0.3.0

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.0

6 months ago