# nml

> JSON XML

Latest version **0.2.1** (published 2016-04-26) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2016-04-26 |
| First published | 2014-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | gzhangzy@gmail.com |
| Maintainers | may |
| Keywords | JSON, XML, XSLT, XHTML |

## Links

- npm: https://www.npmjs.com/package/nml
- npm.io page: https://npm.io/package/nml

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.2.1 (latest) — 2016-04-26
- 0.2.0 — 2016-04-26
- 0.1.3 — 2015-12-10
- 0.1.2 — 2015-02-22
- 0.1.1 — 2014-07-22
- 0.1.0 — 2014-07-16
- 0.0.6 — 2014-05-22
- 0.0.5 — 2014-05-11
- 0.0.4 — 2014-04-04
- 0.0.3 — 2014-03-29
- 0.0.2 — 2014-03-25
- 0.0.1 — 2014-03-24

## README

NML
===
		JSON(JavaScript Object Notation)是一种轻量级的数据交换格式。
	它基于JavaScript(Standard ECMA-262 3rd Edition -December 1999)
	的一个子集。
		NML是JSON的扩展，目的是为了能更方便地实现与XML进行双向变换。
NML语法定义(参考[JSON](http://json.org)语法)
--------------------------------------------
	nml
		{ member }
	object
		{}
		{ member <, member>* }
	member
		string : Value(string|object|array)
	array
		[]
		[ element <, element>* ]
	element
		Value(string|object)
	Value(v)
		v
		{ "attrs" : attributes , "value" : v }
	attributes
		{}
		{ pair <, pair>* }
	pair
		string : string
Installing
----------
	npm install nml
Using
-----
	var Value= require('nml/Value');
	var nml  = require('nml');
	
	var xml  = '<name sex="0" age="14">May</name>';
	var json = nml.parse(xml);
	
	var json = {name: new Value({sex: "0", age: "14"}, "May")};
	var xml  = nml.stringify(json [, xslt]);

## License

MIT © [May xiaoya zhang](gzhangzy@gmail.com)

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