https://github.com/tpkn/ad-size
Module extracts banner's size from html file
https://github.com/tpkn/ad-size
Last synced: 3 months ago
JSON representation
Module extracts banner's size from html file
- Host: GitHub
- URL: https://github.com/tpkn/ad-size
- Owner: tpkn
- License: mit
- Created: 2018-04-26T17:56:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-13T14:25:12.000Z (about 7 years ago)
- Last Synced: 2025-02-14T15:46:29.763Z (3 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# adSize
Module extracts banner's size from html fileFor 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 = '';
let size = adSize(html);
//=> '970x250'```