checkonline
v0.3.0
Published
Check if dist files is online.
Downloads
9
Readme
checkonline
Check if spm package is online.
Install
$ npm install checkonline
Usage
var checkonline = require('checkonline');
checkonline({
cwd: process.cwd(),
server: 'https://a.alipayobjects.com'
}, function(err, files) {
console.log('online: %s', files
.filter(function(f){return f.isOnline})
.map(function(f){return f.filepath;})
);
});
Options
cwd
, path to packagewithDeps
, also check dependencies of this packagestatusCode
, the response should return this status codeserver
, cdn server to serve assets
File Object
filepath
isOnline
LISENCE
Copyright (c) 2014 chencheng. Licensed under the MIT license.