Skip to content

Commit

Permalink
build: renamed package to mime-explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Jan 12, 2023
1 parent 33c4175 commit c292eb3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# mime-es
# mime-explorer

[![npm version](https://badge.fury.io/js/mime-es.svg)](https://badge.fury.io/js/mime-es)
[![main](https://github.com/tada5hi/mime-es/actions/workflows/main.yml/badge.svg)](https://github.com/tada5hi/mime-es/actions/workflows/main.yml)
[![codecov](https://codecov.io/gh/tada5hi/mime-es/branch/master/graph/badge.svg?token=80LA00PIGM)](https://codecov.io/gh/tada5hi/mime-es)
[![Known Vulnerabilities](https://snyk.io/test/github/Tada5hi/mime-es/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Tada5hi/mime-es?targetFile=package.json)
[![npm version](https://badge.fury.io/js/mime-explorer.svg)](https://badge.fury.io/js/mime-explorer)
[![main](https://github.com/tada5hi/mime-explorer/actions/workflows/main.yml/badge.svg)](https://github.com/tada5hi/mime-explorer/actions/workflows/main.yml)
[![codecov](https://codecov.io/gh/tada5hi/mime-explorer/branch/master/graph/badge.svg?token=80LA00PIGM)](https://codecov.io/gh/tada5hi/mime-explorer)
[![Known Vulnerabilities](https://snyk.io/test/github/Tada5hi/mime-explorer/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Tada5hi/mime-explorer?targetFile=package.json)
[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)

This is a library for mime types. It provides an ESM (136kb) and CJS (136kb) build.
Expand All @@ -17,15 +17,15 @@ This is a library for mime types. It provides an ESM (136kb) and CJS (136kb) bui
## Installation

```bash
npm install mime-es --save
npm install mime-explorer --save
```

## Usage

To get the mime type for a given path or extension:

```typescript
import { getType } from 'mime-es';
import { getType } from 'mime-explorer';

getType('txt');
// => 'text/plain'
Expand All @@ -37,7 +37,7 @@ getType('json');
To get the file extension for a given mime type:

```typescript
import { getExtension } from 'mime-es';
import { getExtension } from 'mime-explorer';

getExtension('text/plain');
// => 'txt'
Expand All @@ -49,7 +49,7 @@ getExtension('application/json');
To get meta information for a mime type:

```typescript
import { get } from 'mime-es';
import { get } from 'mime-explorer';

get('text/plain');
/*
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mime-es",
"version": "1.0.2",
"name": "mime-explorer",
"version": "0.0.0",
"description": "This is a library for mime types. It provides an ESM and CJS build.",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -42,12 +42,12 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/Tada5hi/mime-es.git"
"url": "git+https://github.com/Tada5hi/mime-explorer.git"
},
"bugs": {
"url": "https://github.com/Tada5hi/mime-es/issues"
"url": "https://github.com/Tada5hi/mime-explorer/issues"
},
"homepage": "https://github.com/Tada5hi/mime-es#readme",
"homepage": "https://github.com/Tada5hi/mime-explorer#readme",
"devDependencies": {
"@babel/core": "^7.20.2",
"@babel/preset-env": "^7.20.2",
Expand Down

0 comments on commit c292eb3

Please sign in to comment.