Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ziqiangwang/remote-sensor
A tiny (~0.3Kb) tool checking if remove resource valid without full download
https://github.com/ziqiangwang/remote-sensor
check fast remote resources sensor tiny
Last synced: 7 days ago
JSON representation
A tiny (~0.3Kb) tool checking if remove resource valid without full download
- Host: GitHub
- URL: https://github.com/ziqiangwang/remote-sensor
- Owner: ZiQiangWang
- License: mit
- Created: 2019-10-28T14:43:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T00:00:30.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T07:13:51.851Z (about 2 months ago)
- Topics: check, fast, remote, resources, sensor, tiny
- Language: JavaScript
- Homepage:
- Size: 316 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# remote-sensor
[![NPM Version][npm-badge]][npm-url]
[![Downloads Stats][npm-downloads]][npm-url]
[![gzip](http://img.badgesize.io/https://unpkg.com/remote-sensor/dist/remote-sensor.min.js?compression=gzip)](https://unpkg.com/remote-sensor/dist/remote-sensor.min.js)[npm-badge]: https://img.shields.io/npm/v/remote-sensor.svg?style=flat-square
[npm-url]: https://npmjs.org/package/remote-sensor
[npm-downloads]: https://img.shields.io/npm/dm/remote-sensor.svg?style=flat-square> A tiny (~0.3Kb) tool checking if remove resource valid without full download
## Install
> npm i remote-sensor
or
> yarn add remote-sensor
## Usage
```js
import Sensor from 'remote-sensor';
```or
```js
const Sensor = require('remote-sensor');
```or
```html
remoteSensor('https://baidu.png', valid => {
console.log(valid);
});```
```js
Sensor('https://xxxxx.png', valid => {
console.log(valid);
});
```# License
MIT@[ZiQiangWang](https://github.com/ZiQiangWang).