Appearance
Installation
Install with npm
bash
npm install guess-raterImport (ESM)
Guess‑Rater is ESM‑first.
js
import { rate } from 'guess-rater'Node & module system
You must use one of the following:
.mjsfiles- or
"type": "module"in yourpackage.json
json
{
"type": "module"
}Minimal example
js
import { rate } from 'guess-rater'
const score = rate('Molière', 'Moliere')
console.log(score)