@gram-data/gram-identity
Advanced tools
Comparing version 0.2.17 to 0.2.18
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "0.2.17", | ||
"version": "0.2.18", | ||
"license": "MIT", | ||
@@ -52,3 +52,3 @@ "repository": { | ||
"devDependencies": { | ||
"@gram-data/gram-parse": "^0.2.17", | ||
"@gram-data/gram-parse": "^0.2.18", | ||
"@types/jest": "^26.0.15", | ||
@@ -70,3 +70,3 @@ "@types/shortid": "^0.0.29", | ||
"dependencies": { | ||
"@gram-data/gram-ast": "^0.2.15", | ||
"@gram-data/gram-ast": "^0.2.18", | ||
"nanoid": "^3.1.18", | ||
@@ -80,3 +80,3 @@ "unified": "^9.2.0", | ||
}, | ||
"gitHead": "6e144ffd57cde1b4a8da67e3a636c9160875f2b1" | ||
"gitHead": "3f14810a45eb375bef4c583130123f6fa1ec1e0b" | ||
} |
@@ -1,4 +0,29 @@ | ||
# Gram Identity | ||
`(ast)-[identify]->(ast)` | ||
Utilities for establishing or transforming the identity | ||
of elements in a Gram AST. | ||
Collection of identity generating functions and an AST | ||
processing plugin which applies identity to any paths | ||
which have none. | ||
## How to gram-identity | ||
### Install: | ||
``` bash | ||
npm install @gram-data/gram-builder | ||
``` | ||
### Build an AST: | ||
``` TypeScript | ||
import { node, edge } from '@gram-data/gram-builder'; | ||
const left = node('a'); | ||
const right = node('b'); | ||
const ast = edge([left, right], 'right'); | ||
``` | ||
## Next Steps | ||
- Enrich record properties with js objects using [[gram-value]] | ||
- Serializes to a string using [[gram-stringify]] | ||
- Introspect the AST using [[gram-ast]] |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
69404
29
0
Updated@gram-data/gram-ast@^0.2.18