1.6.14 • Published 8 years ago

@jackens/format-xml v1.6.14

Weekly downloads
-
License
ISC
Repository
github
Last release
8 years ago

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.

1.6.14

8 years ago

1.6.11

8 years ago

1.5.25

8 years ago

1.5.24

8 years ago

1.5.23

8 years ago

1.5.21

8 years ago

1.5.20

8 years ago

1.5.18

8 years ago

1.5.17

8 years ago

1.5.7

8 years ago

1.5.6

8 years ago

1.4.28

8 years ago

1.4.27

8 years ago