compressible:可压缩的Content-Type MIME检查

时间:2024-05-19 01:22:53
【文件属性】:

文件名称:compressible:可压缩的Content-Type MIME检查

文件大小:8KB

文件格式:ZIP

更新时间:2024-05-19 01:22:53

nodejs javascript compressible JavaScript

可压缩的 可压缩的Content-Type / mime检查。 安装 $ npm install compressible 原料药 var compressible = require ( 'compressible' ) 可压缩的(类型) 检查给定的Content-Type是否可压缩。 尽管不执行任何验证,但type参数应为值MIME类型或Content-Type字符串。 在查找 ,如果数据库条目中包含可压缩信息,则返回该信息。 否则,对于以下类型,此模块将回退为true : text/* */*+json */*+text */*+xml 如果此模块不确定类型是特定可压缩的还是特定不可压缩的,则返回undefined 。 compressible ( 'text/html' ) // => true compressible ( 'image/png' ) // =>


【文件预览】:
compressible-master
----.gitignore(66B)
----README.md(2KB)
----test()
--------.eslintrc.yml(19B)
--------test.js(3KB)
----HISTORY.md(2KB)
----LICENSE(1KB)
----.eslintrc.yml(29B)
----package.json(1KB)
----index.js(1KB)
----scripts()
--------version-history.js(1KB)
----.eslintignore(34B)
----.travis.yml(3KB)

网友评论