Skip to content

Instantly share code, notes, and snippets.

View kkkrist's full-sized avatar

Christian Mund kkkrist

View GitHub Profile
import mimeTypes from 'mime-types';
import Proto from 'uberproto';
import { parseDataURI } from 'dauria';
import { bufferToHash, fromBuffer } from '../utils/buffer';
export default class Service {
constructor(options) {
if (typeof options === 'undefined') {
throw new Error('blob-service: constructor `options` must be provided');
}
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>