# writexml

> Generate xml file from data.

Latest version **3.0.0** (published 2019-02-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install writexml
pnpm add writexml
yarn add writexml
bun add writexml
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2019-02-24 |
| First published | 2015-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 3 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Taka Okunishi |
| Maintainers | okunishinishi |
| Keywords | svg, file, generator |

## Links

- npm: https://www.npmjs.com/package/writexml
- Repository: https://github.com/okunishinishi/node-svggen
- Homepage: https://github.com/okunishinishi/node-svggen#readme
- Issues: https://github.com/okunishinishi/node-svggen/issues
- npm.io page: https://npm.io/package/writexml

## Dependencies (3)

- [argx](https://npm.io/package/argx.md) ^4.0.0
- [writeout](https://npm.io/package/writeout.md) ^2.2.3
- [js2xmlparser](https://npm.io/package/js2xmlparser.md) ^4.0.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2019-02-24
- 2.0.0 — 2016-05-21
- 1.1.0 — 2015-08-29

## README

writexml
==========

<!---
This file is generated by ape-tmpl. Do not update manually.
--->

<!-- Badge Start -->
<a name="badges"></a>

[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url]

[bd_repo_url]: https://github.com/okunishinishi/node-svggen
[bd_travis_url]: http://travis-ci.org/okunishinishi/node-svggen
[bd_travis_shield_url]: http://img.shields.io/travis/okunishinishi/node-svggen.svg?style=flat
[bd_travis_com_url]: http://travis-ci.com/okunishinishi/node-svggen
[bd_travis_com_shield_url]: https://api.travis-ci.com/okunishinishi/node-svggen.svg?token=
[bd_license_url]: https://github.com/okunishinishi/node-svggen/blob/master/LICENSE
[bd_codeclimate_url]: http://codeclimate.com/github/okunishinishi/node-svggen
[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/okunishinishi/node-svggen.svg?style=flat
[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/okunishinishi/node-svggen.svg?style=flat
[bd_gemnasium_url]: https://gemnasium.com/okunishinishi/node-svggen
[bd_gemnasium_shield_url]: https://gemnasium.com/okunishinishi/node-svggen.svg
[bd_npm_url]: http://www.npmjs.org/package/writexml
[bd_npm_shield_url]: http://img.shields.io/npm/v/writexml.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg

<!-- Badge End -->


<!-- Description Start -->
<a name="description"></a>

Generate xml file from data.

<!-- Description End -->




<!-- Sections Start -->
<a name="sections"></a>

<!-- Section from "doc/guides/01.Installation.md.hbs" Start -->

<a name="section-doc-guides-01-installation-md"></a>

Installation
-----

```bash
npm install writexml --save
```


<!-- Section from "doc/guides/01.Installation.md.hbs" End -->

<!-- Section from "doc/guides/02.Usage.md.hbs" Start -->

<a name="section-doc-guides-02-usage-md"></a>

Usage
----

```javascript
'use strict'

const fs = require('fs')
const writexml = require('writexml')

writexml('person-file.xml', 'person', {
  'telephone': [
    '123-555-4567',
    {
      '#': '789-555-4567',
      '=': 'fax'
    },
    '456-555-7890'
  ]
}).then(() => {
  /* ... */
  fs.readFile('person-file.xml', (err, content) => {
    console.log(content)
    // <?xml version='1.0' encoding='UTF-8'?>
    // <person>
    //     <telephone>123-555-4567</telephone>
    //     <fax>789-555-4567</fax>
    //     <telephone>456-555-7890</telephone>
    // </person>
  })
})

```

<!-- Section from "doc/guides/02.Usage.md.hbs" End -->


<!-- Sections Start -->


<!-- LICENSE Start -->
<a name="license"></a>

License
-------
This software is released under the [MIT License](https://github.com/okunishinishi/node-svggen/blob/master/LICENSE).

<!-- LICENSE End -->

---
_Source: https://npm.io/package/writexml · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
