2.2.1 • Published 6 months ago
damon2 v2.2.1
DAMON: A Map-Oriented Notation
A JSON-shorthand that:
- Stores insertion order
- Embraces the offside-rule
- Reuses JSON types
Demo
Syntax
Use Cases
- Wiki Data-entry
- Software Design
- Interactive Documents
Installation
Node:
npm install damon2
Building
npm run watch # dev
npm run build # distribuable
Usage
Core methods:
const Damon = require('damon2');
let damon = new Damon();
let damonString = `
- {}
- key: "value"`;
console.log(damon.damonToJSON(damonString));
// {
// "key": "value"
// }
console.log(damon.jsonToDAMON(damon.damonToJSON(damonString)));
// - {}
// - key: "value"
console.log(damon.damonToMap(damonString));
// Map(1) {"key" => "value"}
Attributions
Built on:
- JSON-types and JSON.parse()
- json-in-order @sanderevers
- DOMPurify @cure53
Going further
License
Copyright © 2024 Adrian Turcev
Licensed under the MPL-2.0 license
2.2.1
6 months ago
2.1.27
7 months ago
2.1.25
8 months ago
2.1.24
8 months ago
2.1.16
9 months ago
2.1.17
9 months ago
2.1.14
9 months ago
2.1.15
9 months ago
2.1.13
10 months ago
2.0.11
10 months ago
2.0.5
1 year ago
2.0.7
12 months ago
2.0.9
12 months ago
2.0.10
12 months ago
2.0.8
12 months ago
2.0.4
1 year ago
2.0.3
1 year ago
2.0.2
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago