Gaspard-collection
Manipulate collection of DOM elements
🔥 Use gaspard's Collection to queries elements and perform actions on each 🔥
Getting started
Installing
npm | yarn | bower | jsDelivr |
---|---|---|---|
npm install gaspard-collection | yarn add gaspard-collection | bower install gaspard-collection | gaspard-collection.umd.js |
Usage
Include gaspard-collection on your project
// Via ES2015 import statement // or via Commonjsconst GaspardCollection =
const collection = 'div.highlight'collection // returns a new gaspard collection elements // Array of matched elements
Or use gaspard-collection within a <script>
API documentation
Contribute
- Fork the repository
- Clone it locally and install dependencies with npm (or yarn)npm install
- Create a new branch
- Develop your feature/fix with tests runningnpm run test:watch
- Commit, Push your branch and make a pull request on gaspard repository
Licensing
MIT License Copyright (c) 2017 Luca Perret