2.2.1 • Published 7 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
7 months ago
2.1.27
8 months ago
2.1.25
8 months ago
2.1.24
9 months ago
2.1.16
10 months ago
2.1.17
10 months ago
2.1.14
10 months ago
2.1.15
10 months ago
2.1.13
11 months ago
2.0.11
11 months ago
2.0.5
1 year ago
2.0.7
1 year ago
2.0.9
1 year ago
2.0.10
1 year ago
2.0.8
1 year 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