Module

x/fresh/src/dev/deps.ts>Node#getWidth

The next-gen web framework.
Extremely Popular
Go to Latest
method Node.prototype.getWidth
import { Node } from "https://dotland.deno.dev/x/fresh@1.1.5/src/dev/deps.ts";

Gets the text length of the node without trivia.

Parameters

optional
includeJsDocComments: boolean
  • Whether to include the JS doc comments in the width or not.

Returns

number