https://github.com/ragingwind/is-data-uri
check data whether data-uri or not?
https://github.com/ragingwind/is-data-uri
Last synced: about 1 year ago
JSON representation
check data whether data-uri or not?
- Host: GitHub
- URL: https://github.com/ragingwind/is-data-uri
- Owner: ragingwind
- License: mit
- Created: 2015-12-16T02:36:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-16T02:42:13.000Z (over 10 years ago)
- Last Synced: 2025-05-18T00:46:59.134Z (about 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# is-data-uri [](https://travis-ci.org/ragingwind/is-data-uri)
> check data whether data-uri or not?
## Install
```
$ npm install --save is-data-uri
```
## Usage
```js
const isDataUri = require('is-data-uri');
isDataUri('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA==');
//=> true
```
## API
### isDataUri(data)
#### data
Type: `string`
String of data-uri which you want to test
## License
MIT © [ragingwind](http://ragingwind.me)