
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
abstract-iterator
Advanced tools
Add the iterator ability to the abstract-nosql database.
AbstractIterator(db[, options])
db
: the same with the db argument'next'
: the raw key data to ensure the readStream return keys is greater than the key. See 'last'
event.
'filter'
(function): to filter data in the stream
'range'
(string or array): the keys are in the give range as the following format:
gt
/gte
/lt
/lte
options will be ignored.'gt'
(greater than), 'gte'
(greater than or equal) define the lower bound of the range to be streamed. Only records where the key is greater than (or equal to) this option will be included in the range. When reverse=true
the order will be reversed, but the records streamed will be the same.'lt'
(less than), 'lte'
(less than or equal) define the higher bound of the range to be streamed. Only key/value pairs where the key is less than (or equal to) this option will be included in the range. When reverse=true
the order will be reversed, but the records streamed will be the same.'start', 'end'
legacy ranges - instead use 'gte', 'lte'
'match'
(string): use the minmatch to match the specified keys.
'limit'
(number, default: -1
): limit the number of results collected by this stream. This number represents a maximum number of results and may not be reached if you get to the end of the data first. A value of -1
means there is no limit. When reverse=true
the highest keys will be returned instead of the lowest keys.'reverse'
(boolean, default: false
): a boolean, set true and the stream output will be reversed.'keys'
(boolean, default: true
): whether the 'data'
event should contain keys. If set to true
and 'values'
set to false
then 'data'
events will simply be keys, rather than objects with a 'key'
property.'values'
(boolean, default: true
): whether the 'data'
event should contain values. If set to true
and 'keys'
set to false
then 'data'
events will simply be values, rather than objects with a 'value'
property.next(callback): get the next key/value in the iterator async.
nextSync(): return the next {key, value}
object in the iterator.
free():
freeSync():
end([callback]):
endSync():
The following internal methods need to be implemented:
Get the next element of this iterator.
return
end the iterator.
these async methods are optional to be implemented.
FAQs
add the iterator ability to abstract-nosql database.
The npm package abstract-iterator receives a total of 6 weekly downloads. As such, abstract-iterator popularity was classified as not popular.
We found that abstract-iterator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.