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

https://github.com/ai/load-resources

Load all JS/CSS files from site website
https://github.com/ai/load-resources

Last synced: 10 months ago
JSON representation

Load all JS/CSS files from site website

Awesome Lists containing this project

README

          

# Load Resources [![Build Status][ci-img]][ci]

Load all JS/CSS files from site website.

```js
var load = require('load-resources');

load('https://github.com/', '.css', function (css, url) {
// All GitHub styles will be here
})
```

Also you can set a array of sites as first argument.

Third argument of callback will be boolean to indicate last file.

[ci-img]: https://travis-ci.org/ai/load-resources.svg
[ci]: https://travis-ci.org/ai/load-resources