Skip to content

peterprins/ctypelib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

cTypeLib Content-Type Javascript Library

Description

cTypeLib is a simple easy to use Content-Type Library for when you need to get a Content-Type for a file extension or look up a filename's Content-Type base upon it's extension.

Library Syntax

$ctype.extension

Returns the Content-Type string for the specified extension if it is in the library.

$ctype.json

$ctype.form

$ctype.pptx

methods:

$ctype.getType(filename_string)

Returns the Content-Type string for the specified filename if it is in the library.

$ctype.getType('my.cool.file.css')

$ctype.getType('mylibrary.min.js')

$ctype.getType('image.png')

About

cTypeLib - a Content-Type Javascript Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published