2 Commits

Author SHA1 Message Date
75394aaf8b 1.0.3 2020-03-04 15:47:16 +00:00
147a792c4c fix(core): update 2020-03-04 15:47:15 +00:00
3 changed files with 6 additions and 2 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartmime", "name": "@pushrocks/smartmime",
"version": "1.0.2", "version": "1.0.3",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartmime", "name": "@pushrocks/smartmime",
"version": "1.0.2", "version": "1.0.3",
"private": false, "private": false,
"description": "a module to detect mime types", "description": "a module to detect mime types",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -31,3 +31,7 @@ export const isBinary = (pathArg: string) => {
} }
return isBinary; return isBinary;
} }
export const getEncoding = (pathArg: string) => {
return isBinary(pathArg) ? 'binary' : 'utf8';
}