Hello, Prettier | Toph Tucker | Observable
ojs
ojs
ojs
ojs
Author
Toph Tucker
@tophtucker
Worked at Businessweek, Kensho, and now Observable. Living in the Berkshires where my wife runs an inn, Avaloch.
Comments (2)
Jacob Rus
Apr 8, 2021
One slightly shorter version (also may want to pin versions the same way) is: prettier = require('prettier@2', 'prettier@2/parser-babel.js') and then later: prettier.format("2+2", {parser: "babel", plugins: [prettier]})
Toph Tucker
Jul 25, 2021
ty jacob! done
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
1
Follow
Follow
Hello, Prettier | Toph Tucker | Observable