{"id":1438,"date":"2026-04-28T06:25:42","date_gmt":"2026-04-28T06:25:42","guid":{"rendered":"https:\/\/razvanvancea.ro\/blog\/?p=1438"},"modified":"2026-04-29T06:42:05","modified_gmt":"2026-04-29T06:42:05","slug":"oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster","status":"publish","type":"post","link":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/","title":{"rendered":"Oxfmt tutorial &#8211; the Prettier code formatter alternative, 30x faster"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1438\" class=\"elementor elementor-1438\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6785660 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6785660\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-35ba28b\" data-id=\"35ba28b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-761d55a elementor-widget elementor-widget-text-editor\" data-id=\"761d55a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><a href=\"https:\/\/oxc.rs\/\" target=\"_blank\" rel=\"noopener\">The<span style=\"text-decoration: underline;\"> Oxidation Compil<\/span><span style=\"text-decoration: underline;\">er<\/span><\/a> is creating a suite of high-performance tools for JavaScript and TypeScript, written in Rust &#8211; a formatter (oxfmt) and linter (oxlint) tools are important part of this tools suite.<\/p><p><a href=\"https:\/\/oxc.rs\/docs\/guide\/usage\/formatter.html\" target=\"_blank\" rel=\"noopener\"><span style=\"text-decoration: underline;\">Oxfmt<\/span><\/a> is a high-performance formatter for the JavaScript ecosystem.<\/p><p>Oxfmt promises to be <strong>~30x times faster<\/strong> than <strong>Prettier<\/strong> and <strong>2x faster<\/strong> than <strong>Biome<\/strong>.<\/p><p><strong>Supports:<\/strong> JavaScript, JSX, TypeScript, TSX, JSON, JSONC, JSON5, YAML, TOML, HTML, Angular, Vue, CSS, SCSS, Less, Markdown, MDX, GraphQL, Ember, Handlebars, and more.<\/p><p><a href=\"https:\/\/oxc.rs\/compatibility.html\" target=\"_blank\" rel=\"noopener\">Compatibility matrix <span style=\"text-decoration: underline;\">HERE<\/span><\/a><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3020168 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3020168\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-dbff9d7\" data-id=\"dbff9d7\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bc5a3cf elementor-widget elementor-widget-heading\" data-id=\"bc5a3cf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Chapter 1 - How to migrate from Prettier to Oxfmt in simple steps<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4c175dc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4c175dc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-727b9a7\" data-id=\"727b9a7\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ad84f07 elementor-widget elementor-widget-text-editor\" data-id=\"ad84f07\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre>Simply run from CLI the following command:<\/pre><pre><strong>npm add -D oxfmt@latest &amp;&amp; npx oxfmt --migrate=prettier &amp;&amp; npx oxfmt<\/strong><\/pre><pre>\u00a0<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6a55050 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6a55050\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c779e4c\" data-id=\"c779e4c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-32beddb elementor-widget elementor-widget-text-editor\" data-id=\"32beddb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>What the above command does under the hood:<br \/>1. it is installing the oxfmt npm package as dev dependency, <br \/>2. migrates all the existing prettier rules a new configuration file called &#8216;.oxfmtrc.json&#8217;<br \/>3. runs the new oxfmt formatter command<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d8f1af6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d8f1af6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bde768e\" data-id=\"bde768e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d4d67de elementor-widget elementor-widget-text-editor\" data-id=\"d4d67de\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Note: your project root contains &#8216;.oxfmtrc.json&#8217; file, which is an alternative to the previous &#8216;.prettierrc&#8217;<br \/><br \/><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cb44b41 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cb44b41\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b94bc0e\" data-id=\"b94bc0e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e46ea66 elementor-widget elementor-widget-image\" data-id=\"e46ea66\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"640\" height=\"540\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.33.52-1024x864.png\" class=\"attachment-large size-large wp-image-1440\" alt=\"oxfmt-config\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.33.52-1024x864.png 1024w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.33.52-300x253.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.33.52-768x648.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.33.52-850x717.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.33.52-24x20.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.33.52-36x30.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.33.52-48x40.png 48w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.33.52.png 1048w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4239baf elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4239baf\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c5c587e\" data-id=\"c5c587e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cdb14a3 elementor-widget elementor-widget-text-editor\" data-id=\"cdb14a3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>How the .oxfmtrc.json file looks like<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-94f0a7d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"94f0a7d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-065f71c\" data-id=\"065f71c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-800dbcf elementor-widget elementor-widget-image\" data-id=\"800dbcf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"640\" height=\"217\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.37.01-1024x347.png\" class=\"attachment-large size-large wp-image-1441\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.37.01-1024x347.png 1024w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.37.01-300x102.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.37.01-768x260.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.37.01-1536x521.png 1536w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.37.01-2048x695.png 2048w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.37.01-850x288.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.37.01-24x8.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.37.01-36x12.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.37.01-48x16.png 48w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3f16b27 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3f16b27\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-be6586a\" data-id=\"be6586a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-851adab elementor-widget elementor-widget-text-editor\" data-id=\"851adab\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>It contains all the rules that were migrated from the &#8216;.prettierrc&#8217; file<\/p><p>When the migration process is complete, you can also modify\/add new code format rules into that config file.<br \/><a href=\"https:\/\/oxc.rs\/docs\/guide\/usage\/formatter\/config-file-reference.html\" target=\"_blank\" rel=\"noopener\">Full list of code formatting rules<span style=\"text-decoration: underline;\"> HERE<\/span><\/a><br \/><br \/>Note: the above config includes &#8216;ignorePatterns&#8217; key that contains all the paths that we do not want to be in scope for code formatting. In prettier, we usually set them into .prettierignore file. If that file exists, during the migration process, they are automatically included in the above config file and oxfmt will be aware of them.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-89e27c2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"89e27c2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-55a024f\" data-id=\"55a024f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a837a71 elementor-widget elementor-widget-heading\" data-id=\"a837a71\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Add scripts to package.json<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a14b06d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a14b06d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1fa375f\" data-id=\"1fa375f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d4ba5e7 elementor-widget elementor-widget-image\" data-id=\"d4ba5e7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"640\" height=\"377\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.41.45.png\" class=\"attachment-large size-large wp-image-1442\" alt=\"scripts-oxfmt\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.41.45.png 876w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.41.45-300x177.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.41.45-768x452.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.41.45-850x501.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.41.45-24x14.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.41.45-36x21.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.41.45-48x28.png 48w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-88d2ded elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"88d2ded\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-dbf2839\" data-id=\"dbf2839\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f2b10fb elementor-widget elementor-widget-heading\" data-id=\"f2b10fb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Format files<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8b875dc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8b875dc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7e878db\" data-id=\"7e878db\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-718d18d elementor-widget elementor-widget-text-editor\" data-id=\"718d18d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre><strong>npm run fmt<\/strong><\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b87424e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b87424e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-97ecb71\" data-id=\"97ecb71\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1485269 elementor-widget elementor-widget-heading\" data-id=\"1485269\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Check formatting without writing files<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fa3f647 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fa3f647\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7d38852\" data-id=\"7d38852\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-877bd17 elementor-widget elementor-widget-text-editor\" data-id=\"877bd17\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre><strong>npm run fmt:check<\/strong><\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8f9eb83 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8f9eb83\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-efb72eb\" data-id=\"efb72eb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d103f1f elementor-widget elementor-widget-spacer\" data-id=\"d103f1f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1ddcd30 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1ddcd30\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f1d4954\" data-id=\"f1d4954\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1d81e06 elementor-widget elementor-widget-heading\" data-id=\"1d81e06\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Chapter 2 - Installing Oxfmt from scratch<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-43242a4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"43242a4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6e74690\" data-id=\"6e74690\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0d7907f elementor-widget elementor-widget-text-editor\" data-id=\"0d7907f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ol><li>install oxfmt as dev dependency<p><strong>npm add -D oxfmt<br \/><\/strong><\/p><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-88355a6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"88355a6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-834b80f\" data-id=\"834b80f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ae6d7e1 elementor-widget elementor-widget-text-editor\" data-id=\"ae6d7e1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre>2. add scripts to package.json as shown above<\/pre><pre>{<br \/>\"scripts\": {<br \/>\u00a0 \"fmt\": \"oxfmt\",<br \/>\u00a0 \"fmt:check\": \"oxfmt --check\"<br \/>\u00a0 }<br \/>}<\/pre><pre>3. generate the .oxfmtrc.json config file using<br \/><strong>oxfmt --init<\/strong><\/pre><p>4. Add formatting rules and ignorePatterns into <strong>.oxfmtrc.json<\/strong> file accordingly (see example above, in Chapter 1)<\/p><p><a href=\"https:\/\/oxc.rs\/docs\/guide\/usage\/formatter\/config-file-reference.html\" target=\"_blank\" rel=\"noopener\">Full list of code formatting rules<span style=\"text-decoration: underline;\"> HERE<\/span><\/a><\/p><p>5. simply run &#8216;npm run fmt&#8217; to format file, or &#8216;npm run fmt:check&#8217; to check formatting without writing files<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d3c6a81 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d3c6a81\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ab0f137\" data-id=\"ab0f137\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3feca2e elementor-widget elementor-widget-spacer\" data-id=\"3feca2e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5347cd9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5347cd9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b822a83\" data-id=\"b822a83\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bc95c28 elementor-widget elementor-widget-text-editor\" data-id=\"bc95c28\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Enjoyed this article?<br \/>I share more practical automation tips on\u00a0<a href=\"https:\/\/www.youtube.com\/c\/LearnwithRV\/videos\" target=\"_blank\" rel=\"noopener\"><strong>YouTube<\/strong><\/a>\u00a0and\u00a0<a href=\"https:\/\/www.linkedin.com\/in\/razvanvancea\/\" target=\"_blank\" rel=\"noopener\"><strong>LinkedIn<\/strong><\/a>.<\/p><p><strong>Need structured guidance instead of learning alone?<\/strong><br \/>I offer\u00a0<strong>1-on-1 mentoring<\/strong>\u00a0&#8211; learn more \u2192\u00a0<strong><a href=\"https:\/\/razvanvancea.ro\/1on1.html\" target=\"_blank\" rel=\"noopener\">HERE<\/a><\/strong><\/p><p>Or email me at\u00a0<strong>iamqarv [at] gmail [dot] com<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>The Oxidation Compiler is creating a suite of high-performance tools for JavaScript and TypeScript, written&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1446,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[12],"tags":[],"class_list":["post-1438","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tools"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"The Oxidation Compiler is creating a suite of high-performance tools for JavaScript and TypeScript, written in Rust \u2013 a formatter (oxfmt) and linter (oxlint) tools are important part of this tools suite.Oxfmt is a high-performance formatter for the JavaScript ecosystem.Oxfmt promises to be ~30x times faster than Prettier and 2x faster than Biome.Supports: JavaScript, JSX,\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Razvan Vancea\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Learn with RV - Tech Blog - #testautomation #qa #programming #linux #devops\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Oxfmt tutorial \u2013 the Prettier code formatter alternative, 30x faster - Learn with RV - Tech Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"The Oxidation Compiler is creating a suite of high-performance tools for JavaScript and TypeScript, written in Rust \u2013 a formatter (oxfmt) and linter (oxlint) tools are important part of this tools suite.Oxfmt is a high-performance formatter for the JavaScript ecosystem.Oxfmt promises to be ~30x times faster than Prettier and 2x faster than Biome.Supports: JavaScript, JSX,\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-04-28T06:25:42+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-04-29T06:42:05+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/razvanvancea\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@RazvanVancea\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Oxfmt tutorial \u2013 the Prettier code formatter alternative, 30x faster - Learn with RV - Tech Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"The Oxidation Compiler is creating a suite of high-performance tools for JavaScript and TypeScript, written in Rust \u2013 a formatter (oxfmt) and linter (oxlint) tools are important part of this tools suite.Oxfmt is a high-performance formatter for the JavaScript ecosystem.Oxfmt promises to be ~30x times faster than Prettier and 2x faster than Biome.Supports: JavaScript, JSX,\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@RazvanVancea\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/#blogposting\",\"name\":\"Oxfmt tutorial \\u2013 the Prettier code formatter alternative, 30x faster - Learn with RV - Tech Blog\",\"headline\":\"Oxfmt tutorial &#8211; the Prettier code formatter alternative, 30x faster\",\"author\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/Screenshot-2026-04-28-at-09.51.16.png\",\"width\":1182,\"height\":1226,\"caption\":\"oxc-photo\"},\"datePublished\":\"2026-04-28T06:25:42+00:00\",\"dateModified\":\"2026-04-29T06:42:05+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/#webpage\"},\"articleSection\":\"Tools\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/tools\\\/#listItem\",\"name\":\"Tools\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/tools\\\/#listItem\",\"position\":2,\"name\":\"Tools\",\"item\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/tools\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/#listItem\",\"name\":\"Oxfmt tutorial &#8211; the Prettier code formatter alternative, 30x faster\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/#listItem\",\"position\":3,\"name\":\"Oxfmt tutorial &#8211; the Prettier code formatter alternative, 30x faster\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/tools\\\/#listItem\",\"name\":\"Tools\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\",\"name\":\"RV\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/#personImage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/91ce41471f9ba5f15b3ef99e7deed87c.jpg?ver=1790847588\",\"width\":96,\"height\":96,\"caption\":\"RV\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/razvanvancea\\\/\",\"https:\\\/\\\/twitter.com\\\/RazvanVancea\",\"https:\\\/\\\/www.youtube.com\\\/@LearnwithRV\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/razvanvancea\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/\",\"name\":\"Razvan Vancea\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/#authorImage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/356548feb901191539c03dd4a0498f58.jpg?ver=1790847589\",\"width\":96,\"height\":96,\"caption\":\"Razvan Vancea\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/#webpage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/\",\"name\":\"Oxfmt tutorial \\u2013 the Prettier code formatter alternative, 30x faster - Learn with RV - Tech Blog\",\"description\":\"The Oxidation Compiler is creating a suite of high-performance tools for JavaScript and TypeScript, written in Rust \\u2013 a formatter (oxfmt) and linter (oxlint) tools are important part of this tools suite.Oxfmt is a high-performance formatter for the JavaScript ecosystem.Oxfmt promises to be ~30x times faster than Prettier and 2x faster than Biome.Supports: JavaScript, JSX,\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/Screenshot-2026-04-28-at-09.51.16.png\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/#mainImage\",\"width\":1182,\"height\":1226,\"caption\":\"oxc-photo\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2026\\\/04\\\/28\\\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\\\/#mainImage\"},\"datePublished\":\"2026-04-28T06:25:42+00:00\",\"dateModified\":\"2026-04-29T06:42:05+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/\",\"name\":\"Learn with RV - Tech Blog\",\"description\":\"#testautomation #qa #programming #linux #devops\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Oxfmt tutorial \u2013 the Prettier code formatter alternative, 30x faster - Learn with RV - Tech Blog","description":"The Oxidation Compiler is creating a suite of high-performance tools for JavaScript and TypeScript, written in Rust \u2013 a formatter (oxfmt) and linter (oxlint) tools are important part of this tools suite.Oxfmt is a high-performance formatter for the JavaScript ecosystem.Oxfmt promises to be ~30x times faster than Prettier and 2x faster than Biome.Supports: JavaScript, JSX,","canonical_url":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/#blogposting","name":"Oxfmt tutorial \u2013 the Prettier code formatter alternative, 30x faster - Learn with RV - Tech Blog","headline":"Oxfmt tutorial &#8211; the Prettier code formatter alternative, 30x faster","author":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"publisher":{"@id":"https:\/\/razvanvancea.ro\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.51.16.png","width":1182,"height":1226,"caption":"oxc-photo"},"datePublished":"2026-04-28T06:25:42+00:00","dateModified":"2026-04-29T06:42:05+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/#webpage"},"isPartOf":{"@id":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/#webpage"},"articleSection":"Tools"},{"@type":"BreadcrumbList","@id":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/razvanvancea.ro\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/#listItem","name":"Tools"}},{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/#listItem","position":2,"name":"Tools","item":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/","nextItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/#listItem","name":"Oxfmt tutorial &#8211; the Prettier code formatter alternative, 30x faster"},"previousItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/#listItem","position":3,"name":"Oxfmt tutorial &#8211; the Prettier code formatter alternative, 30x faster","previousItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/#listItem","name":"Tools"}}]},{"@type":"Person","@id":"https:\/\/razvanvancea.ro\/blog\/#person","name":"RV","image":{"@type":"ImageObject","@id":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/#personImage","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/litespeed\/avatar\/91ce41471f9ba5f15b3ef99e7deed87c.jpg?ver=1790847588","width":96,"height":96,"caption":"RV"},"sameAs":["https:\/\/www.facebook.com\/razvanvancea\/","https:\/\/twitter.com\/RazvanVancea","https:\/\/www.youtube.com\/@LearnwithRV","https:\/\/www.linkedin.com\/in\/razvanvancea"]},{"@type":"Person","@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author","url":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/","name":"Razvan Vancea","image":{"@type":"ImageObject","@id":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/#authorImage","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/litespeed\/avatar\/356548feb901191539c03dd4a0498f58.jpg?ver=1790847589","width":96,"height":96,"caption":"Razvan Vancea"}},{"@type":"WebPage","@id":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/#webpage","url":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/","name":"Oxfmt tutorial \u2013 the Prettier code formatter alternative, 30x faster - Learn with RV - Tech Blog","description":"The Oxidation Compiler is creating a suite of high-performance tools for JavaScript and TypeScript, written in Rust \u2013 a formatter (oxfmt) and linter (oxlint) tools are important part of this tools suite.Oxfmt is a high-performance formatter for the JavaScript ecosystem.Oxfmt promises to be ~30x times faster than Prettier and 2x faster than Biome.Supports: JavaScript, JSX,","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/razvanvancea.ro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/#breadcrumblist"},"author":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"creator":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.51.16.png","@id":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/#mainImage","width":1182,"height":1226,"caption":"oxc-photo"},"primaryImageOfPage":{"@id":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/#mainImage"},"datePublished":"2026-04-28T06:25:42+00:00","dateModified":"2026-04-29T06:42:05+00:00"},{"@type":"WebSite","@id":"https:\/\/razvanvancea.ro\/blog\/#website","url":"https:\/\/razvanvancea.ro\/blog\/","name":"Learn with RV - Tech Blog","description":"#testautomation #qa #programming #linux #devops","inLanguage":"en-US","publisher":{"@id":"https:\/\/razvanvancea.ro\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Learn with RV - Tech Blog - #testautomation #qa #programming #linux #devops","og:type":"article","og:title":"Oxfmt tutorial \u2013 the Prettier code formatter alternative, 30x faster - Learn with RV - Tech Blog","og:description":"The Oxidation Compiler is creating a suite of high-performance tools for JavaScript and TypeScript, written in Rust \u2013 a formatter (oxfmt) and linter (oxlint) tools are important part of this tools suite.Oxfmt is a high-performance formatter for the JavaScript ecosystem.Oxfmt promises to be ~30x times faster than Prettier and 2x faster than Biome.Supports: JavaScript, JSX,","og:url":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/","article:published_time":"2026-04-28T06:25:42+00:00","article:modified_time":"2026-04-29T06:42:05+00:00","article:publisher":"https:\/\/www.facebook.com\/razvanvancea","twitter:card":"summary_large_image","twitter:site":"@RazvanVancea","twitter:title":"Oxfmt tutorial \u2013 the Prettier code formatter alternative, 30x faster - Learn with RV - Tech Blog","twitter:description":"The Oxidation Compiler is creating a suite of high-performance tools for JavaScript and TypeScript, written in Rust \u2013 a formatter (oxfmt) and linter (oxlint) tools are important part of this tools suite.Oxfmt is a high-performance formatter for the JavaScript ecosystem.Oxfmt promises to be ~30x times faster than Prettier and 2x faster than Biome.Supports: JavaScript, JSX,","twitter:creator":"@RazvanVancea"},"aioseo_meta_data":{"post_id":"1438","title":null,"description":null,"keywords":null,"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2026-04-28 06:52:38","updated":"2026-09-04 08:26:33","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/razvanvancea.ro\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/razvanvancea.ro\/blog\/category\/tools\/\" title=\"Tools\">Tools<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tOxfmt tutorial \u2013 the Prettier code formatter alternative, 30x faster\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/razvanvancea.ro\/blog\/"},{"label":"Tools","link":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/"},{"label":"Oxfmt tutorial &#8211; the Prettier code formatter alternative, 30x faster","link":"https:\/\/razvanvancea.ro\/blog\/2026\/04\/28\/oxfmt-tutorial-the-prettier-code-formatter-alternative-30x-faster\/"}],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-28-at-09.51.16.png","_links":{"self":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/1438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/comments?post=1438"}],"version-history":[{"count":47,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/1438\/revisions"}],"predecessor-version":[{"id":1489,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/1438\/revisions\/1489"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media\/1446"}],"wp:attachment":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media?parent=1438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/categories?post=1438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/tags?post=1438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}