Quesk is a lightweight JavaScript library (v2.0.1, last updated 2017) providing abstract data types for both Queue and Stack collections. It supports both CommonJS and ES module imports, and includes a UMD bundle for browser use. The API is minimal, offering methods like append, prepend, shift, pop, first, last, and length. It differentiates from libraries like `denque` or `double-ended-queue` by focusing solely on basic first-in-first-out and last-in-first-out operations without additional features, making it suitable for small projects or educational use. However, it has no active maintenance and may lack modern JavaScript optimizations.
npm install queskNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create Queue and Stack instances, add items, access first/last, and remove items.
Always call quesk() to get an instance.
Create a new instance if you need to preserve state.
Consider using actively maintained alternatives like denque or double-ended-queue.
Use first()/last() to access elements before removing; pop()/shift() only remove and return the element.
Ensure you call quesk() after import: const q = quesk();
Run 'npm install quesk' or 'yarn add quesk'
Add 'transform-es2015-modules-commonjs' to your Babel configuration.
No dependency data recorded yet.