# ad-size

> Module extracts banner's size from html file

Latest version **1.0.2** (published 2018-05-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install ad-size
pnpm add ad-size
yarn add ad-size
bun add ad-size
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-05-13 |
| First published | 2018-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | tpkn |
| Keywords | ad, adv, banner, size, width, height, meta, tag, ad.size, html |

## Links

- npm: https://www.npmjs.com/package/ad-size
- Repository: https://github.com/tpkn/ad-size
- Homepage: https://github.com/tpkn/ad-size#readme
- Issues: https://github.com/tpkn/ad-size/issues
- npm.io page: https://npm.io/package/ad-size

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-05-13
- 1.0.1 — 2018-04-26

## README

# adSize   
Module extracts banner's size from html file  


For now it's focuses on meta tag containing width and height.


## Installation
```bash
npm install ad-size
```



## API

### adSize(input[, silent])


### input
Type: _String_   
Path to html file or it's content 


### silent
Type: _Boolean_  
Default: `true`  
If `true`, then no errors would be thrown, and if an error occurs, the function returns `null`  



## Usage

```javascript
const adSize = require('ad-size');

let html = '<html><head><meta name="ad.size" content="HEIGHT=250px,width=970"></head><body></body></html>';
let size = adSize(html);
//=> '970x250'

```

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