Check if a Unist node is generated.
npm:
npm install unist-util-generated
var generated = require('unist-util-generated')
generated({}) // => true
generated({
position: {start: {}, end: {}}
}) // => true
generated({
position: {
start: {line: 1, column: 1},
end: {line: 1, column: 2}
}
}) // => false
node
(Node
) — Node to check.
boolean
— Whether node
is generated.
unist-util-position
— Get the position of nodesunist-util-remove-position
— Removeposition
s from a treeunist-util-stringify-position
— Stringify a node, position, or point
See contributing.md
in syntax-tree/unist
for ways to get
started.
This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.