1.0.13 • Published 4 years ago

kc-fctype v1.0.13

Weekly downloads
17
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago