How to use mimer - 1 common examples

To help you get started, we’ve selected a few mimer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github data-uri / datauri / src / datauri / api.js View on Github external
createMetadata(fileName) {
    this.fileName = fileName;
    this.mimetype = mimer(fileName);
    const { mimetype, base64 = '' } = this;
    this.content = uri({ mimetype, base64 });

    return this;
  }

mimer

A simple Mime type getter

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis

Popular mimer functions