close
Skip to main content

@sys/text@0.0.330
Built and signed on GitHub Actions

Works with
This package works with Deno, Browsers
This package works with Deno
This package works with Browsers
JSR Score100%
License
MIT
Downloads1/wk
Published2 weeks ago (0.0.330)

Tools for working with strings of text.

Text Helpers

Tools for working with strings of text.

 

Filter

A small, composable text-filtering primitive for fast, human-friendly search — designed to normalize loose queries once, score matches deterministically, and stay predictable under iteration.

import { Filter } from '@sys/text/filter';

const results = Filter.apply(
  'fbr',
  [
    { text: 'Foo.Bar.Render', value: 'render' },
    { text: 'Foo.Bar.Router', value: 'router' },
    { text: 'Foo.Baz.Result', value: 'result' },
  ],
  {
    mode: 'fuzzy', // loose, in-order character matching for quick recall-style search
    limit: 10,
  },
);

// → forgiving, ranked matches suited to jump-to-anything navigation
Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@sys/text

Import symbol

import * as text from "@sys/text";
or

Import directly with a jsr specifier

import * as text from "jsr:@sys/text";