# dna-js

> Human-readable data format.

Latest version **0.0.3** (published 2015-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install dna-js
pnpm add dna-js
yarn add dna-js
bun add dna-js
```

Provides the command `dna`.

## 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.0.3 |
| Published | 2015-09-16 |
| First published | 2015-07-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ali Shakiba |
| Maintainers | shakiba |
| Keywords | human-readable, format, file, serialization, data, document |

## Links

- npm: https://www.npmjs.com/package/dna-js
- Repository: https://github.com/shakiba/dna
- Issues: https://github.com/shakiba/dna/issues
- npm.io page: https://npm.io/package/dna-js

## 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

- 0.0.3 (latest) — 2015-09-16
- 0.0.2 — 2015-07-08

## README

## DNA

**DNA is a human-readable data format, inspired by XML, JSON and Properties files and similar to YAML and Jade, with improved readability.**

You can use this package to parse and stringify DNA format in JavaScript or Node.js or convert DNA to JSON from command line.

##### Node.js

###### Usage
```js
var object = DNA.parse(string);

var string = DNA.stringify(object);
```

###### Install
```
npm install dna-js --save
```

##### Command Line

###### Usage

```bash
dna json file.dna > file.json
```

###### Install
```
npm install dna-js -g
```

#### Example
An [example](./test/basic.dna) DNA file with JSON [conversion](./test/basic.json) are available in [/test](./test) directory.

#### License
Copyright (c) 2015 Ali Shakiba  
Available under the MIT license

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