@parischap/pretty-print
v1.1.0
Published
An effect library that produces the string representation of any JavaScript value. Similar to `util.inspect` but with extensive configurability: treeifying, coloring, sorting, filtering, choosing what to display and how to display it... Handles all effect
Maintainers
Readme
pretty-print
An effect library that produces the string representation of any JavaScript value. Similar to util.inspect but with extensive configurability: treeifying, coloring, sorting, filtering, choosing what to display and how to display it... Handles all effect iterables such as HashMap and HashSet natively.
All exports follow the PP-prefix naming convention to avoid name collisions with other libraries;
Platform-independent, well tested and documented, optimized for tree-shaking, 100% Typescript, 100% functional.
Can also be used by non-effect users.
→ API
→ GETTING STARTED
→ INSTALLING
Depending on the package manager you use, run one of the following commands in your terminal:
npm:
npm install effect @parischap/effect-lib @parischap/ansi-styles @parischap/conversions @parischap/pretty-printpnpm:
pnpm add effect @parischap/effect-lib @parischap/ansi-styles @parischap/conversions @parischap/pretty-printyarn:
yarn add effect @parischap/effect-lib @parischap/ansi-styles @parischap/conversions @parischap/pretty-print
→ IMPORTING (WITH OPTIMIZED TREE-SHAKING)
This library exports EcmaScript and CommonJS modules.
It offers named imports from the barrel:
import { PPByPasser } from '@parischap/pretty-print';and namespace imports from individual modules (recommended when tree-shaking matters):
import * as PPByPasser from '@parischap/pretty-print/PPByPasser';→ DONATE
Any donations would be much appreciated 😄
Please star the repo if you find it useful!
→ LICENSE
MIT © Jérôme MARTIN (@parischap)
