1.0.4 ⢠Published 6 months ago
flames-match v1.0.4
š„ flames-match
š„ A simple and fun FLAMES game package to check relationship compatibility between two names. Get your match result instantly using this package!
š Installation
Install the package using npm or yarn:
npm install flames-match
or
yarn add flames-match
š® Usage
Import the package and use it to determine the relationship between two names:
const flamesMatch = require("flames-match");
const result = flamesMatch("Alice", "Bob");
console.log(result); // Output: "Friends" | "Love" | "Affection" | "Marriage" | "Enemy" | "Siblings"
Using in ES Modules
import flamesMatch from "flames-match";
console.log(flamesMatch("John", "Doe"));
// Output: One of "Friends", "Love", "Affection", "Marriage", "Enemy", or "Siblings"
š FLAMES Meaning
The result will be one of the following:
- F ā Friends š¬
- L ā Love ā¤ļø
- A ā Affection š
- M ā Marriage š
- E ā Enemy š
- S ā Siblings š©āš¦
š How It Works
- The common letters between the two names are removed.
- The remaining letters are counted.
- The count is used to cycle through the word "FLAMES" until one letter remains.
- The letter determines the relationship outcome.
š ļø Development & Contributions
Want to improve the package? Feel free to fork the repo and submit a pull request. Contributions are welcome! š
git clone https://github.com/yourusername/flames-match.git
cd flames-match
npm install
npm run test
š License
This package is licensed under the MIT License. See LICENSE for details.
š Contact
For queries or suggestions, feel free to reach out:
- GitHub: @praveenrampk
- Twitter/X: @praveenrampk
- Portfolio: praveenram.dev
- Email: praveenrampk@gmail.com
Enjoy the FLAMES game! š„š„š„