
Product
Introducing Supply Chain Attack Campaigns Tracking in the Socket Dashboard
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.
insert-list
Advanced tools
Minimal list UI that is a writable Stream and supports sorting by predefined keys
Minimal list UI that is a writable Stream and supports sorting by predefined keys.
var List = require('insert-list');
var list = List({ el: '#node', sortBy: 'position' });
src1.pipe(list);
src2.pipe(list);
list.emit('data', { data: 'historical 1', position: 1 });
list.emit('data', { data: 'historical 2', position: 2 });
list.emit('data', { data: 'historical 3', position: 3 });
The stream can be used before the dom is ready and will automatically insert its UI when it is.
$ component install juliangruber/insert-list
# or
$ npm install insert-list
Creates a new insert-list, instanceof Stream.
If options is an object, valid options are:
el: Dom-Element to render insert-list into. Can be a string/css-selector, dom node or jQuery objectsortBy: If the key you sort by is at object.foo.bar, pass foo.barasc/inv: Inverse the sort orderframe: Dom to put around the list. The default is <ul class="insert-list"></ul>If opt is a string, domnode or jQuery-object, it is interpreted as the el option.
Overwrite this function to put your custom rendering logic in place, e.g. use another template and add event listeners.
The default is
function(data) {
return tpl(data);
}
where tpl is a compiled template function.
(MIT)
Copyright (c) 2012 Julian Gruber <julian@juliangruber.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Minimal list UI that is a writable Stream and supports sorting by predefined keys
The npm package insert-list receives a total of 0 weekly downloads. As such, insert-list popularity was classified as not popular.
We found that insert-list 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.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Security News
Node.js 25.4.0 makes require(esm) stable, formalizing CommonJS and ESM compatibility across supported Node versions.