1.0.2 • Published 9 months ago

soccer-football v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago