parse-data-uri

WebJar for parse-data-uri

License

License

ISC
Categories

Categories

Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

parse-data-uri
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

parse-data-uri
WebJar for parse-data-uri
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/junosuarez/node-parse-data-uri

Download parse-data-uri

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/parse-data-uri/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>parse-data-uri</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/parse-data-uri/
implementation 'org.webjars.npm:parse-data-uri:0.2.0'
// https://jarcasting.com/artifacts/org.webjars.npm/parse-data-uri/
implementation ("org.webjars.npm:parse-data-uri:0.2.0")
'org.webjars.npm:parse-data-uri:jar:0.2.0'
<dependency org="org.webjars.npm" name="parse-data-uri" rev="0.2.0">
  <artifact name="parse-data-uri" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='parse-data-uri', version='0.2.0')
)
libraryDependencies += "org.webjars.npm" % "parse-data-uri" % "0.2.0"
[org.webjars.npm/parse-data-uri "0.2.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : data-uri-to-buffer jar [0.0.3]

Project Modules

There are no modules declared in this project.

parse-data-uri

parse a data uri into mime type and buffer

usage

var parseDataUri = require('parse-data-uri')

var dataUri = 'data:image/jpeg;base64,23423423...'

var parsed = parseDataUri(dataUri)

console.log(parsed)
// {
//   mimeType: 'image/jpeg',
//   data: Buffer < 00 00 00 ... > 
// }

api

###parseDataUri : ( dataUri: String ) => {mimeType: String, data: Buffer}

installation

$ npm install parse-data-uri

running the tests

From package root:

$ npm install
$ npm test

Special thanks to @tootallnate for writing data-uri-to-buffer

contributors

license

ISC. (c) MMXIV jden [email protected]. See LICENSE.md

Versions

Version
0.2.0