Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/montagejs/collections
This package contains JavaScript implementations of common data structures with idiomatic interfaces.
https://github.com/montagejs/collections
Last synced: about 2 months ago
JSON representation
This package contains JavaScript implementations of common data structures with idiomatic interfaces.
- Host: GitHub
- URL: https://github.com/montagejs/collections
- Owner: montagejs
- License: other
- Created: 2012-07-27T22:58:22.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-11-08T10:56:19.000Z (11 months ago)
- Last Synced: 2024-04-14T09:05:14.099Z (5 months ago)
- Language: JavaScript
- Homepage: http://www.collectionsjs.com
- Size: 1.48 MB
- Stars: 2,084
- Watchers: 43
- Forks: 187
- Open Issues: 80
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Collections
[![npm version](https://img.shields.io/npm/v/collections.svg?style=flat)](https://www.npmjs.com/package/collections)
[![Build Status](https://travis-ci.org/montagejs/collections.png?branch=master)](http://travis-ci.org/montagejs/collections)
[![Analytics](https://ga-beacon.appspot.com/UA-51771141-2/collections/readme)](https://github.com/igrigorik/ga-beacon)
This package contains JavaScript implementations of common data
structures with idiomatic iterfaces, including extensions for Array and
Object.You can use these Node Packaged Modules with Node.js, [Browserify](https://github.com/substack/node-browserify),
[Mr](https://github.com/montagejs/mr), or any compatible CommonJS module loader. Using a module loader
or bundler when using Collections in web browsers has the advantage of
only incorporating the modules you need. However, you can just embed
`` and *all* of the
collections will be introduced as globals. :warning:
`require("collections")` is not supported.```
npm install collections --save
```Documentation can be found at http://collectionsjs.com which in turn can be
updated at https://github.com/montagejs/collectionsjs.com.## Maintenance
Tests are in the `test` directory. Use `npm test` to run the tests in
NodeJS or open `test/run.html` in a browser.To run the tests in your browser, simply use `npm run test:jasmine`.
To run the tests using Karma use `npm run test:karma` and for continious tests run with file changes detection `npm run test:karma-dev`. Finally to open a remote debug console on karma use `npm run test:karma-debug`.
## Design principles
- extends core types (e.g extends `Array.prototype` with additional non-enumerable properties like `.set`)