mimer

WebJar for mimer

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

mimer
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

mimer
WebJar for mimer
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/data-uri/mimer

Download mimer

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Mimer Build Status NPM version

A simple MIME type getter built on top of Node.js.

MODULE

Browser version:: Minified (amd and CommonJS ready) Source

Node.js version: npm install mimer into your project

Getting started

// node and browserify
const Mimer = require('mimer');

// amd (Require.js and etc)
require('path/to/mimer', function (Mimer) {});

// browser (through script tag)
window.Mimer

Get a MIME type

Mimer('file.css'); // => "text/css"

// or
var mime = new Mimer();
mime.get('file.css');  // => "text/css"

Set a MIME type

var mime = new Mimer();

mime.set('.monster', 'movie/thriller')
	.get('zombie.monster');
	// => "movie/thriller"

mime.set(['.rctycoon','.simcity'], 'cms/game');
mime.get('/land/park.rctycoon'); // => "cms/game"
mime.get('maps/city.simcity'); // => "cms/game"

CLIENT

npm install -g mimer (it may require Root privileges)

pritting a mime type

$ mimer brand.png

DEVELOPING

$ make install
$ make test

Build web version with:

$ make build

If you'd like to test the full process including npm installer, just run:

$ make fulltest

Release notes

See more in Releases section.

License

MIT License (c) Helder Santana

org.webjars.npm

Versions

Version
1.1.0
1.0.0
0.3.2