Skip to content

Commit be5d8d8

Browse files
committed
Updated the files array in package.json because language-config has been renamed to config
1 parent d46af30 commit be5d8d8

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

bin/cli.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ const path = process.argv[2];
66

77
const tooManyArguments = process.argv[3];
88

9-
if (tooManyArguments) console.log('Error! Too many arguments passed in. Only one argument can be passed in. If your path or file name contain spaces, try to surround the whole file path with quotes!');
9+
if (tooManyArguments)
10+
console.log(
11+
"Error! Too many arguments passed in. Only one argument can be passed in. If your path or file name contain spaces, try to surround the whole file path with quotes!"
12+
);
1013

1114
languageEncoding(path)
12-
.then(fileInfo => {
13-
console.log(fileInfo);
14-
})
15-
.catch(error => {
16-
console.log(error);
17-
});;
15+
.then((fileInfo) => {
16+
console.log(fileInfo);
17+
})
18+
.catch((error) => {
19+
console.log(error);
20+
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "detect-file-encoding-and-language",
3-
"version": "2.0.4",
3+
"version": "2.0.7",
44
"description": "Charset Detector - Detect the encoding and language of any file - Use it in the browser, with Node.js, or via CLI",
55
"main": "src/index-node.js",
66
"scripts": {
@@ -17,7 +17,7 @@
1717
"files": [
1818
"umd",
1919
"src/components",
20-
"src/language-config"
20+
"src/config"
2121
],
2222
"repository": {
2323
"type": "git",

0 commit comments

Comments
 (0)