Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
75394aaf8b | |||
147a792c4c |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartmime",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartmime",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"private": false,
|
||||
"description": "a module to detect mime types",
|
||||
"main": "dist/index.js",
|
||||
|
@ -31,3 +31,7 @@ export const isBinary = (pathArg: string) => {
|
||||
}
|
||||
return isBinary;
|
||||
}
|
||||
|
||||
export const getEncoding = (pathArg: string) => {
|
||||
return isBinary(pathArg) ? 'binary' : 'utf8';
|
||||
}
|
||||
|
Reference in New Issue
Block a user