
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 basic interface for a list.
This package is ESM only: Node 12+ is needed to use it and it must be imported
instead of required.
npm:
npm install datalist-interface
import {DatalistInterface} from '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
This package exports the following identifiers: DatalistInterface.
There is no default export.
DatalistInterface([value...])Create a new instance.
Values are passed to #add().
import {DatalistInterface} from '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'
datamap-interface
— Simple interface for a mapFAQs
Legacy package (use `Set` instead)
The npm package datalist-interface receives a total of 4 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.