Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7112591
prettier.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
232 B
Referenced Files
None
Subscribers
None
prettier.ts
View Options
import
Prettier
from
"prettier"
;
export
async
function
formatWithPrettier
(
content
:
string
,
lang
=
"typescript"
)
:
Promise
<
string
>
{
return
await
Prettier
.
format
(
content
,
{
useTabs
:
true
,
tabWidth
:
4
,
parser
:
lang
,
});
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Thu, Jul 3, 22:01 (9 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
798923
Default Alt Text
prettier.ts (232 B)
Attached To
Mode
rJDD jdd
Attached
Detach File
Event Timeline
Log In to Comment