Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rkrupinski/dom-array
Turn any* input into array (of DOM nodes).
https://github.com/rkrupinski/dom-array
Last synced: about 1 month ago
JSON representation
Turn any* input into array (of DOM nodes).
- Host: GitHub
- URL: https://github.com/rkrupinski/dom-array
- Owner: rkrupinski
- Created: 2014-07-13T12:40:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-28T13:28:41.000Z (over 10 years ago)
- Last Synced: 2024-11-08T15:18:50.772Z (about 2 months ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dom-array
=========
Turn any* input into array (of DOM nodes).[![Build Status](https://travis-ci.org/rkrupinski/dom-array.png)](https://travis-ci.org/rkrupinski/dom-array)
Input formats:
- `window`
- `document`
- `Element`
- `NodeList`
- `Array`
- `String`
- `undefined`
- `null`Usage
-----
```js
var $ = require('dom-array');$(); // []
$('title'); // [title]
$('title', document.body); // []
$(''); // [title]
```Installation
------------
```bash
$ npm install dom-array
```Test
----
```bash
$ npm test
```Browser support
---------------
IE9+