remote-sensor
v0.0.6
Published
Check if remove resource valid without full download
Downloads
5
Maintainers
Readme
remote-sensor
A tiny (~0.3Kb) tool checking if remove resource valid without full download
Install
npm i remote-sensor
or
yarn add remote-sensor
Usage
import Sensor from 'remote-sensor';
or
const Sensor = require('remote-sensor');
or
<script src="https://unpkg.com/remote-sensor@latest/dist/remote-sensor.min.js"></script>
<script>
remoteSensor('https://baidu.png', valid => {
console.log(valid);
});
</script>
Sensor('https://xxxxx.png', valid => {
console.log(valid);
});
License
MIT@ZiQiangWang.