Registry / storage / meteor-deque

meteor-deque

JSON →
library2.1.0jsnpmunverified

A Meteor wrapper package for double-ended-queue that exists solely to work around an npm read-installed bug preventing prerelease versioned packages (like double-ended-queue@2.1.0-0) from being installed in top-level node_modules. Current stable version is 2.1.0. No active development beyond the workaround; exports the underlying deque module unmodified. Not recommended for new projects unless specifically needed for Meteor interoperability.

npm install meteor-deque
INSTALL
IMPORT
SIG · METEOR-DEQUE
M
meteor-deque
storagejavascriptv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import Deque from 'meteor-deque'
import { Deque } from 'meteor-deque'
Default export only; named export does not exist.
Deque
const Deque = require('meteor-deque')
const { Deque } = require('meteor-deque')
CommonJS: default export via module.exports, not named export.
Deque (type)
import Deque from 'meteor-deque'
import type Deque from 'meteor-deque'
TypeScript: use default import; types are re-exported from double-ended-queue.

Shows basic usage: create a Deque, push/unshift/shift, convert to array, and check length.

import Deque from 'meteor-deque'; const deque = new Deque(); deque.push(1); deque.unshift(0); console.log(deque.shift()); // 0 console.log(deque.toArray()); // [1] console.log(deque.length); // 1
Debug
Known issues
gotchaThis package is a thin wrapper; any bugs or security issues in double-ended-queue apply.
fix
Monitor the double-ended-queue package for updates.
affects: *
gotchaNo ESM export in package.json; ESM import works only via bundlers or Node with experimental modules.
fix
Use CommonJS require() for universal compatibility.
affects: >=2.0.0
deprecatedThe npm read-installed bug that this package works around is fixed in npm v7+. Package likely unnecessary.
fix
Consider replacing with double-ended-queue directly if not using Meteor or older npm.
affects: *
Errors
Common errors & fixes
Cannot find module 'meteor-deque'
Package not installed or missing from dependencies.
fix
Run 'npm install meteor-deque' or add to package.json.
TypeError: Deque is not a constructor
Named import when package exports default only.
fix
Use import Deque from 'meteor-deque' instead of import { Deque }.
Upgrade
Version history
2.1.0latest on npm
Audit
Dependencies
double-ended-queuerequiredthe wrapped underlying deque implementation
Agent activity
21 hits · last 30 days
node
20
OpenAI (training)
1
Resources
meteor-deque — npm install meteor-deque · libregistry