A suite to track Project Diva score statistics and ratings / D4DJ event data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
projectdivar/server/node_modules/parse-data-uri
sigonasr2 0785506fad Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
..
test Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
.npmignore Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
LICENSE.md Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
README.md Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
index.js Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
package.json Update and test twitter endpoints and connections. Prepare java spring server 4 years ago

README.md

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 jason@denizac.org. See LICENSE.md