object-cursor-stream
de-duped keypath stream
Example
var cursorStream = var cursor = cursor // 'Dr. Chansey'cursor // *nothing emitted*cursor // 'Prof. Oak'cursor // undefined var cursor2 = cursor2 // 'Dr. Chansey'cursor2 // *nothing emitted*cursor2 // 'Prof. Oak'cursor2 // 'Spike'
API
cursorStream(keypath[, fallback]) -> DuplexStream
keypath
is a string representing a path to the data you want from the written data.fallback
is an optional argument that will be emitted if the data atkeypath
isundefined
.
License
This project is licensed under the Apache License, Version 2.0. See LICENSE for the full license.