An open API service indexing awesome lists of open source software.

https://github.com/kikobeats/html-scripts

It parses HTML markup and returns you all the scripts.
https://github.com/kikobeats/html-scripts

Last synced: 4 months ago
JSON representation

It parses HTML markup and returns you all the scripts.

Awesome Lists containing this project

README

        

# html-scripts

![Last version](https://img.shields.io/github/tag/Kikobeats/html-scripts.svg?style=flat-square)
[![Coverage Status](https://img.shields.io/coveralls/Kikobeats/html-scripts.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/html-scripts)
[![NPM Status](https://img.shields.io/npm/dm/html-scripts.svg?style=flat-square)](https://www.npmjs.org/package/html-scripts)

> It parses HTML markup and returns you all the scripts.

## Install

```bash
$ npm install html-scripts --save
```

## Usage

```js
const getScripts = require('html-scripts')

const scripts = getScripts('

\n\n')

console.log(scripts)
// [
// {
// async: null,
// charset: 'utf-8',
// src: 'https://platform.twitter.com/widgets.js',
// },
// ]
```

## License

**html-scripts** © [Kiko Beats](https://kikobeats.com), released under the [MIT](https://github.com/Kikobeats/html-scripts/blob/master/LICENSE.md) License.

Authored and maintained by Kiko Beats with help from [contributors](https://github.com/Kikobeats/html-scripts/contributors).

> [kikobeats.com](https://kikobeats.com) · GitHub [Kiko Beats](https://github.com/Kikobeats) · Twitter [@Kikobeats](https://twitter.com/Kikobeats)