Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@jackens/format-xml

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jackens/format-xml

‘format-xml’ simply formats xml. Works in both Node.js and the browser. Lightweight. No dependencies.

latest
Source
npmnpm
Version
1.6.14
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

format-xml

‘format-xml’ simply formats xml. Works in both Node.js and the browser. Lightweight. No dependencies.

Install

NPM

npm install @jackens/format-xml

CDN

<script type="text/javascript" src="https://cdn.rawgit.com/jackens/format-xml/master/format-xml.js"></script>

or

<script type="text/javascript" src="https://cdn.rawgit.com/jackens/format-xml/master/format-xml.min.js"></script>

or

<script type="text/javascript" src="https://unpkg.com/@jackens/format-xml/format-xml.js"></script>

or

<script type="text/javascript" src="https://unpkg.com/@jackens/format-xml/format-xml.min.js"></script>

Usage

var formatXml = require('@jackens/format-xml')

formatXml(someXmlString, options)

Defaults:

{
  indent: '  ',
  caseInsensitiveTags: false,
  caseInsensitiveAttributes: false
}

More usage examples: https://github.com/jackens/format-xml/blob/master/test.js.

Keywords

format-xml

FAQs

Package last updated on 14 Jun 2018

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