You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

fast-xml-builder

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-xml-builder

Build XML from JSON without C/C++ based libraries

Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
12M
97.49%
Maintainers
1
Weekly downloads
 
Created
Source

fast-xml-builder

Build XML from JSON

XML Builder was the part of fast-xml-parser for years. But considering that any bug in parser may false-alarm the users who are only using builder, we have decided to split it into a separate package.

Installation

npm install fast-xml-builder

Usage

import XMLBuilder from 'fast-xml-builder';

const builder = new XMLBuilder();
const xml = builder.build({ name: 'value' });

fast-xml-builder fully support the response generated by fast-xml-parser. So you can use the maximum options as you are using for fast-xml-parser like preserveOrder, ignoreAttributes, attributeNamePrefix, textNodeName, cdataTagName, cdataPositionChar, format, indentBy, suppressEmptyNode and many more. Any change in parser will reflect here time to time.

Keywords

xml

FAQs

Package last updated on 10 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts