Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F4637606
prettier.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
226 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
Prettier
.
format
(
content
,
{
useTabs
:
true
,
tabWidth
:
4
,
parser
:
lang
,
});
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Tue, May 27, 23:48 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
698678
Default Alt Text
prettier.ts (226 B)
Attached To
Mode
rJDD jdd
Attached
Detach File
Event Timeline
Log In to Comment