soccer-football
v1.0.2
Published
Lightweight npm package for localizing 'soccer' vs 'football'
Downloads
218
Maintainers
Readme
soccer-football
A simple utility for distinguishing between users who say soccer and those who say football.
Installation
Install from npm with your preferred package manager.
npm i soccer-football
Usage
Simply import the isSoccer
utility into any frontend module in your application.
Example in Typescript
import { isSoccer } from `soccer-football`;
export default function localizeFootball(): string {
return isSoccer() ? "soccer" : "football".
}
Example in Javascript
const { isSoccer } = require("soccer-football");
export default function localizeFootball() {
return isSoccer() ? "soccer" : "football";
}
Contributing
I welcome any PRs to the soccer-football repo, and will happily merge them if they're:
- Practical
- Thoroughly tested
- Lightweight
License
Licensed under the MIT License