forked from desmondmorris/node-tesseract
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Breaking change: Switch to returning Promise in place of callback f…
…or `process` - Update: psm argument for tesseract 4+ - Fix (npm): `engine` -> `engines` - Fix: Allow image files to contain spaces (desmondmorris#59 ) - Enhancement: Add oem flag (https://github.com/desmondmorris/node-tesseract/pull/62/files ) - Enhancement: Add `tessdataDir` option (`--tessdata-dir`) - Enhancement: Add HOCR, TSV support (https://github.com/desmondmorris/node-tesseract/pull/60/files ) - Enhancement: Add debug option and `.idea` to ignore (desmondmorris#43 ) - Linting (ESLint): Apply ash-nazg - Refactoring: Use asynchronous `unlink`; remove custom `merge` in favor of spread operator - Testing: Switch to chai over should - Testing: Add coverage - Maintenance: Add `.editorconfig` - npm: Add recommended properties; update deps and devDeps; add ignore file and `package-lock.json`
- Loading branch information
Showing
12 changed files
with
4,724 additions
and
166 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
; EditorConfig file: https://EditorConfig.org | ||
; Install the "EditorConfig" plugin into your editor to use | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
|
||
; [app/public/css/**.styl] | ||
; indent_style = tab | ||
; indent_size = 2 |
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,2 @@ | ||
node_modules | ||
coverage |
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,39 @@ | ||
module.exports = { | ||
"env": { | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
settings: { | ||
polyfills: [ | ||
'Promise' | ||
] | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['test/**'], | ||
env: { | ||
mocha: true | ||
} | ||
}, | ||
{ | ||
files: ['*.md'], | ||
rules: { | ||
strict: 0, | ||
'no-console': 0, | ||
'node/no-missing-require': ['error', {allowModules: ['node-tesseract']}] | ||
} | ||
} | ||
], | ||
"extends": ["ash-nazg/sauron", "plugin:node/recommended-script"], | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2018 | ||
}, | ||
"rules": { | ||
"import/no-commonjs": 0 | ||
} | ||
}; |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
.idea |
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 @@ | ||
test |
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
Oops, something went wrong.