Skip to content

Creates MIME type Typescript type declarations from iana's live data

License

Notifications You must be signed in to change notification settings

samhuk/mime-types-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mime-type-typescript

This tool grabs the latest MIME type list from iana's website and parses them to neat Typescript union-type type declarations of all possible MIME types. These types can then be ported to your projects.

Usage

Latest update available at ./dist/latestUpdate.ts

From Source

Clone this repository.

Run npm i to install NPM dependencies.

Run npm run update to run the update script.

Observe new type declarations at /dist/latestUpdate.ts

About

Creates MIME type Typescript type declarations from iana's live data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published