Skip to main content
Module

x/bundler/deps.ts>postcss.Node#rangeBy

A Bundler with the web in mind.
Latest
method postcss.Node.prototype.rangeBy
Re-export
import { postcss } from "https://deno.land/x/bundler@0.9.0/deps.ts";
const { Node } = postcss;

Get the range for a word or start and end index inside the node. The start index is inclusive; the end index is exclusive.

Parameters

optional
opts: Pick<WarningOptions, "word" | "index" | "endIndex">

Options.

Returns

Range

Range.