1.0.13 • Published 3 years ago

kc-fctype v1.0.13

Weekly downloads
17
License
ISC
Repository
github
Last release
3 years ago

FCType

js Return content type based on file name.

Mime list

This module needs a mime-type list to retrieve the data. You can obtain the list installing the kc-mime-list module.

Install

npm install kc-mime-list
npm install kc-fctype

Use

var mimes = require('kc-mime-list');
var fctype = require('kc-fctype');
var ctype  = fctype('my-file.js', mimes);
console.log(ctype); // 'application/javascript'
1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago