Using word-extractor on browser
Install word-extractor and blob-to-buffer:
1 | npm install --save word-extractor blob-to-buffer |
Install browserify dependendcies:
1 | npm install --save assert buffer events path-browserify process stream-browserify util browserify-zlib |
Add webpack fallback configuration:
1 | module.exports = { |
Read a file with File API and extract from it
1 | const blobToBuffer = require('blob-to-buffer'); |