-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dmitry Shirokov
committed
Sep 25, 2020
1 parent
b176134
commit 1b40042
Showing
6 changed files
with
66 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ node_modules | |
coverage | ||
npm-debug.log | ||
lib | ||
TODO.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "chardet", | ||
"version": "0.0.0-development", | ||
"homepage": "https://github.com/runk/node-chardet", | ||
"description": "Character detector", | ||
"description": "Character encoding detector", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
|
@@ -22,8 +22,8 @@ | |
"prepublish": "npm run build", | ||
"semantic-release": "semantic-release" | ||
}, | ||
"main": "lib/index.js", | ||
"files": ["lib"], | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"engine": { | ||
"node": ">=4" | ||
|
@@ -50,7 +50,38 @@ | |
"utf8", | ||
"detector", | ||
"chardet", | ||
"icu" | ||
"icu", | ||
"character detection", | ||
"character encoding", | ||
"language", | ||
"iconv", | ||
"iconv-light", | ||
"UTF-8", | ||
"UTF-16", | ||
"UTF-32", | ||
"ISO-2022-JP", | ||
"ISO-2022-KR", | ||
"ISO-2022-CN", | ||
"Shift_JIS", | ||
"Big5", | ||
"EUC-JP", | ||
"EUC-KR", | ||
"GB18030", | ||
"ISO-8859-1", | ||
"ISO-8859-2", | ||
"ISO-8859-5", | ||
"ISO-8859-6", | ||
"ISO-8859-7", | ||
"ISO-8859-8", | ||
"ISO-8859-9", | ||
"windows-1250", | ||
"windows-1251", | ||
"windows-1252", | ||
"windows-1253", | ||
"windows-1254", | ||
"windows-1255", | ||
"windows-1256", | ||
"KOI8-R" | ||
], | ||
"author": "Dmitry Shirokov <[email protected]>", | ||
"contributors": [ | ||
|
@@ -59,5 +90,8 @@ | |
"@suisho", | ||
"@seangarner", | ||
"@zevanty" | ||
] | ||
], | ||
"browser": { | ||
"./lib/fs/node.js": "./lib/fs/browser.js" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default () => { | ||
throw new Error('File system is not available'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
let fsModule: any; | ||
|
||
export default () => { | ||
if (typeof module === 'object' && typeof module.exports === 'object') { | ||
fsModule = fsModule ? fsModule : require('fs'); | ||
return fsModule; | ||
} | ||
throw new Error('File system is not available'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters