Classes

Text.mjs

@mr_ozio/scraper-utils · v2.5.0 · Generated April 21, 2026

Target Style

Target Style

1 exports

class

Text

Target Style
export class Text {

No description provided.

Target style API. Preferred for new code.

Members

6 items

Target Style

Target Style

4 members

constructor

constructor

Target Style
constructor(text) {

/** Builds a text wrapper for similarity and hash helpers.

Parameters

  • textstring

method

hash

Target Style
hash() {

/** Returns a cached Nilsimsa hash for the current text.

Returns

string

method

similarity

Target Style
similarity(to) {

/** Compares the current text against another value.

Parameters

  • tostring

Returns

number

method

toString

Target Style
toString() {

/** Returns the original text.

Returns

string

Legacy Style

Legacy Style

2 members

method

getHash

Legacy Style
getHash() {

/** Returns a cached Nilsimsa hash for the current text.

Returns

string

method

compare

Legacy Style
compare(text) {

/** Compares the current text against another value.

Parameters

  • textstring

Returns

number

Legacy Style

Legacy Style

0 exports

No legacy exports in this module.