
Company News
Meet the Socket Team at RSAC and BSidesSF 2026
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.
datalist-interface
Advanced tools
A simple interface for a list.
npm:
npm install datalist-interface
var DatalistInterface = require('datalist-interface');
var mammals = new DatalistInterface([
'common vampire bat',
'virginia opossum',
'eastern grey kangaroo',
'tasmanian devil',
'human',
'northern elephant seal',
'fox squirrel',
'tree pangolin',
'african elephant',
'platypus',
'colugo',
'reindeer',
'humpback whale',
'star-nosed mole',
'giant panda',
'giant armadillo',
'plains zebra',
'black and rufous elephant shrew'
]);
mammals.is('human'); // true
mammals.is('unicorn'); // false
mammals.add('unicorn').is('unicorn'); // true
mammals.remove('unicorn').is('unicorn'); // false
DatalistInterface([value...])Create a new instance. Values are passed to #add().
var DatalistInterface = require('datalist-interface');
var fish = new DatalistInterface(['shark', 'tuna']);
DatalistInterface#is(value)DatalistInterface#has(value)Check if value is in the list.
fish.is('shark'); // true
fish.is('human'); // false
DatalistInterface#add([value...])Add each value to list.
fish.add('giant grouper', 'red lionfish');
DatalistInterface#remove([value...])Remove each value from list.
fish.remove('giant grouper', 'reindeer');
DatalistInterface#all()DatalistInterface#valueOf()DatalistInterface#toJSON()Return the list as an Array.
fish.all(); // ['shark', 'tuna', 'red lionfish']
DatalistInterface#toString()Return the list as a string.
fish.toString(); // 'shark,tuna,red lionfish'
FAQs
Legacy package (use `Set` instead)
The npm package datalist-interface receives a total of 3 weekly downloads. As such, datalist-interface popularity was classified as not popular.
We found that datalist-interface 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.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.

Research
/Security News
Malicious Packagist packages disguised as Laravel utilities install an encrypted PHP RAT via Composer dependencies, enabling remote access and C2 callbacks.

Research
/Security News
OpenVSX releases of Aqua Trivy 1.8.12 and 1.8.13 contained injected natural-language prompts that abuse local AI coding agents for system inspection and potential data exfiltration.