JS/TS Formatter
Format JavaScript, TypeScript, or JSON with Prettier (bounded input size)
prettierv3.xhttps://github.com/prettier/prettier
Workspace
Local or server · same path as API
dev/js-formatParser
Before
const x={a:1,b:2}
function f(){return x}After
—
Prettier · same path as API
API
forge.dev.js_formatSame contract as the page. Use an authenticated key in production.
curl -X POST 'https://forge.nebutra.com/v1/tools/dev/js-format/invoke' \
-H 'Authorization: Bearer sk-sailor-…' \
-H 'Content-Type: application/json' \
-d '{
"example": true
}'
