# glance-dom

> Glance DOM library

Latest version **0.11.8-1** (published 2018-03-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install glance-dom
pnpm add glance-dom
yarn add glance-dom
bun add glance-dom
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.11.8-1 |
| Published | 2018-03-21 |
| First published | 2017-04-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 327.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Dan Gilkerson |
| Maintainers | quasimatic |
| Keywords | glance, automation, browser, testing, test |

## Links

- npm: https://www.npmjs.com/package/glance-dom
- Repository: https://github.com/quasimatic/glance-dom
- Issues: https://github.com/quasimatic/glance-dom/issues
- npm.io page: https://npm.io/package/glance-dom

## Dependencies (6)

- [@arr/map](https://npm.io/package/@arr/map.md) ^1.0.0
- [@arr/find](https://npm.io/package/@arr/find.md) ^1.0.0
- [@arr/some](https://npm.io/package/@arr/some.md) ^1.0.0
- [@arr/filter](https://npm.io/package/@arr/filter.md) ^1.0.0
- [@arr/reduce](https://npm.io/package/@arr/reduce.md) ^1.0.0
- [glance-parser](https://npm.io/package/glance-parser.md) 0.0.7

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.11.8-1 (latest) — 2018-03-21
- 0.11.8-0 — 2018-03-21
- 0.11.7 — 2017-12-18
- 0.11.6 — 2017-10-03
- 0.11.5 — 2017-08-29
- 0.11.4 — 2017-08-09
- 0.11.3 — 2017-08-09
- 0.11.2 — 2017-05-12
- 0.11.1 — 2017-05-11
- 0.11.0 — 2017-05-01
- 0.10.4 — 2017-04-25
- 0.10.3 — 2017-04-24
- 0.10.2 — 2017-04-24
- 0.10.1 — 2017-04-24

## README

# Glance DOM

Glance is a simple way to reference elements in the DOM. It’s intention and hope is to keep you from needing to look at the DOM in order to gain a handle to an element. However, if you do inspect the DOM (for example to grab a class or an id off of an element) then referencing elements by classes and id’s are supported too. 

To best understand how it works, experimenting with it goes a long way. You can learn how to read Glance by playing a game… [Come Take A Glance](http://quasimatic.org/take-a-glance/). Learn even more at [Quasimatic.org](https://quasimatic.org/glance)

## Documentation

For details on all good things that are Glance, come [read the docs](http://quasimatic.org/glance-dom).


### Browser

If you want to use Glance DOM in your Browser simply include it in a ```<script>``` tag on your page as shown below and then use it as shown below in example-script.js

```javascript
<html>
  <body>
    <script src="http://quasimatic.org/glance-dom/dist/glance-dom.js" type="text/javascript"></script>
    <script src="example-script.js" type="text/javascript"></script>
  </body>
</html>
```

And then in your ```example-script.js``` file you can find the element that contains "click me" by executing the following:

```javascript
var element = glanceDOM("click me");
```

---
_Source: https://npm.io/package/glance-dom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
