html-scripts-to-array

0.0.2 • Public • Published

html-scripts-to-array

JavaScript implementation to extract HTML script src links to a JSON file.

Install

$ npm install html-scripts-to-array

Example

var convert = require("html-scripts-to-array");
 
var files = convert.extract('index.html');
console.log(files);
//['file1.js', file2.js', 'file3.js']
 
convert.extractJSON('index.html', 'arrayOutput.json');
// creates file 'arrayOutput.json' with ['file1.js', file2.js', 'file3.js']

Package Sidebar

Install

npm i html-scripts-to-array

Weekly Downloads

2

Version

0.0.2

License

BSD-2-Clause

Last publish

Collaborators

  • takuu