data-uri-to-file
data-uri encoded in base64 to file or stream
Install
$ npm install --save data-uri-to-file
Usage
const toFile = ;const dataUri = 'data:image/svg+xml;base64,PD94bWwgdmVy ... URPQ1RZUEUgc3ZnIFB4KPC9zdmc+Cgo='; // promise style; // stream stylefs ;
API
toFile(input)
input
Type: string
String with data-uri encoded in base64.
toFile.stream()
Stream supportable interface.
License
MIT © ragingwind