Skip to main content
Module

x/ts_morph/mod.ts>Node#getWidth

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Node.prototype.getWidth
import { Node } from "https://deno.land/x/ts_morph@15.1.0/mod.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