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.
- Host: GitHub
- URL: https://github.com/kikobeats/html-scripts
- Owner: Kikobeats
- License: mit
- Created: 2019-12-23T15:37:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-24T12:50:34.000Z (over 1 year ago)
- Last Synced: 2024-03-24T20:00:39.898Z (about 1 year ago)
- Language: JavaScript
- Size: 56.6 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# html-scripts

[](https://coveralls.io/github/Kikobeats/html-scripts)
[](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')our new shiny website has landed https://t.co/KIrhYYcTRx pic.twitter.com/cM0se2UoIg
— microlink.io (@microlinkhq) August 23, 2018console.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)