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
- Host: GitHub
- URL: https://github.com/ai/load-resources
- Owner: ai
- License: mit
- Created: 2015-05-11T17:49:01.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-08T18:21:29.000Z (over 10 years ago)
- Last Synced: 2024-12-14T02:32:15.088Z (over 1 year ago)
- Language: JavaScript
- Size: 160 KB
- Stars: 16
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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