flames-match
v1.0.4
Published
A simple package to calculate Flames match results
Maintainers
Readme
🔥 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-matchor
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: [email protected]
Enjoy the FLAMES game! 🔥🔥🔥
