@dprint/core

v0.9.0
Core functionality for dprint.
code formatter

@dprint/core

The core functionality for dprint.

Contains:

  • Print Items - Plugins use these to declaritively tell the printer how the final file should look like.
  • Global Configuration - Global configuration and its result.
  • formatFileText - Function for formatting the file text.
  • Printer (internal) - Accepts an iterable of print items, resolves the conditions and infos, and decides how to lay out the final text.
  • Writer (internal) - Used by the printer to write out the final text. This is like an advanced string builder.
npm i @dprint/core

Metadata

  • MIT
  • Whatever
  • David Sherret
  • released 4/28/2020

Downloads

Maintainers