Skip to content

Commit

Permalink
Merge branch 'master' of github.com:broofa/node-mime
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Nov 25, 2017
2 parents f548916 + 34b5c6b commit 852b042
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
24 changes: 11 additions & 13 deletions README.md
Expand Up @@ -11,7 +11,7 @@ Version 2 is a breaking change from 1.x, as the semver implies. Specifically:
* `extension()` renamed to `getExtension()`
* `charset()` and `load()` methods have been removed

If you prefer the legacy version of this module please `npm install mime@^1`. Version 1 docs may be found [here](https://github.com/broofa/node-mime/tree/v1.4.0).
If you prefer the legacy version of this module please `npm install mime@^1`. Version 1 docs may be found [here](https://github.com/broofa/node-mime/tree/v1.x).

## Install - NPM
```
Expand Down Expand Up @@ -49,19 +49,17 @@ To use this module in the browser, you would typlically use
package your code. However, browser-ready versions are available via wzrd.in.
E.g. For the full version:

<script src="http://wzrd.in/standalone/mime@latest"></script>
<script src="https://wzrd.in/standalone/mime@latest"></script>
<script>
mime.getType(...); // etc.
<script>

Or, for the "lite" version:
Or, for the `mime/lite` version:

<script src="http://wzrd.in/standalone/mime%2flite@latest"></script>

Then:

```html
<script>
mime.getType(...); // etc.
</script>
```
<script src="https://wzrd.in/standalone/mime%2flite@latest"></script>
<script>
mimelite.getType(...); // (Note `mimelite` here)
<script>

## Mime .vs. mime-types .vs. mime-db modules

Expand Down Expand Up @@ -184,4 +182,4 @@ E.g.
application/javascript

----
Markdown generated from [src/README_js.md](src/README_js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd)
Markdown generated from [src/README_js.md](src/README_js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd)
20 changes: 9 additions & 11 deletions src/README_js.md
Expand Up @@ -51,19 +51,17 @@ To use this module in the browser, you would typlically use
package your code. However, browser-ready versions are available via wzrd.in.
E.g. For the full version:

<script src="http://wzrd.in/standalone/mime@latest"></script>
<script src="https://wzrd.in/standalone/mime@latest"></script>
<script>
mime.getType(...); // etc.
<script>

Or, for the "lite" version:
Or, for the `mime/lite` version:

<script src="http://wzrd.in/standalone/mime%2flite@latest"></script>

Then:

```html
<script>
mime.getType(...); // etc.
</script>
```
<script src="https://wzrd.in/standalone/mime%2flite@latest"></script>
<script>
mimelite.getType(...); // (Note `mimelite` here)
<script>

## Mime .vs. mime-types .vs. mime-db modules

Expand Down

0 comments on commit 852b042

Please sign in to comment.