range-position (npm): Determine where a collapsed Range is positioned relative to a DOM Node
Keywords: dom|browser|range|position|node|element|start|before|middle|after|end