{"name":"word","version":"0.4.0","author":{"name":"sheetjs"},"description":"Word Processing Document library","keywords":["word"],"main":"./word","types":"./dist/typings/index.d.ts","dependencies":{"cfb":"^1.2.0","jsdom":"^16.2.2"},"devDependencies":{"@types/jsdom":"^16.2.3","@types/mocha":"^7.0.2","@types/node":"^14.0.20","glob":"^7.1.6","mocha":"^8.0.1","ts-node":"^8.10.2","typescript":"^3.9.6"},"repository":{"type":"git","url":"git://github.com/SheetJS/js-word.git"},"scripts":{"build:cjs":"tsc -p tsconfig/tsconfig.cjs.json","build:types":"tsc -p tsconfig/tsconfig.types.json","test":"mocha -r ts-node/register test.ts"},"homepage":"https://wordjs.com/","bugs":{"url":"https://github.com/SheetJS/js-word/issues"},"license":"Apache-2.0","engines":{"node":">=0.8"},"gitHead":"4a9cbcafc6639362857ee46b1d0bc305e0c90dc9","_id":"word@0.4.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Aq84KjS7Z9HSU14qf4l/NEouaqfJAZtE9zEz7TIvw9V/3oJeUbjQwhz7ggqbL7I7REt4Bz+9HuCWsBO5N7xChw==","shasum":"691272aaecb9da96388fc873d2ecb48a17cbee54","tarball":"http://registry-npm.ywwl.com/word/download/word-0.4.0.tgz","fileCount":52,"unpackedSize":84515,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFy3vCRA9TVsSAnZWagAAKwQP/1Q5YOl+nFwTsFcQ5oNA\n9G9DdH8xN+LZ2qr4nzeuK43F5HeouaXlFwObL6kYnmOpqe8sh5bz2E06gVxw\nH0w/4XT1EPOqaMCC3uWk7X1djk7ZHz6ffdbI15Z86WJ0j32g2aXPxqNAMvMT\nEatQAGe9CYWnZ+vO+cVGPEvT1JkiebgrspmSP+1hIA6KApawEK8UqiJ5rkEv\nGN7+tZLNP7W/+rqTZddo3saB57vS/Or8gdp9/vWbCwUQqcdy3+HVOtMz4KpV\nOoQeAypgtkrIBxqWxuRyvyo+0PpcLN6vL6zu/sgIqd551baHo3mj8hofS8u7\nKccIUrhdbTbpHdG6h2O1mAX9Bd+wB0h3SxJxcRO+IzFu9nr3l9UOOIO8P9zj\nanFY5bNXOW6s/oog1wusoHPD4SDWSllb8uTxE0K+Z08/q07KAY6T9rUizVCD\nM6w9vhA6zzkp4chp//ESU8fPY3UcvbFNZfs6ImZOpoZyPrM4T3lfLcak5Zjv\nGkEmD6MQif/mhY2eO4RAZRGVCkh+A3UmjtfgPThxdJS5rJeKhj0be3Q2uHMr\nmz1rzQ1m0vzC5vyE6/BESkQ2zolA1nbJVj9S65VIG9D5FjMkDGLPgTJeJv8S\n0jYFTYjEn0KbRq3iOgUPuBYRAHzg4/esQ14CTV/LVUUl+OA5NPdrV2vSbI85\nHXwW\r\n=Ines\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8YP4xbEbeWP3FE9elSpKTT3+HTlTG9T7HHjZvA2FpAAiEAqkMlRE82zVtIEn9xZMZqus1l3yfci253sqB5Im7UR4E="}],"size":21563,"noattachment":false,"key":"/word/-/word-0.4.0.tgz"},"maintainers":[{"email":"dev@sheetjs.com","name":"sheetjs"}],"_npmUser":{"name":"sheetjs","email":"dev@sheetjs.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/word_0.4.0_1595354607057_0.15959281057664532"},"_hasShrinkwrap":false,"readme":"# [SheetJS js-word](http://wordjs.com)\n\nParser and writer for various word processing doc formats. Pure-JS cleanroom\nimplementation from official specifications, related documents, and test files.\nEmphasis on parsing and writing robustness, cross-format feature compatibility\nwith a unified JS representation, and maximal browser compatibility.\n\n\n## Test Files\n\nTest files should be placed in the `test_files` directory, in the appropriate\nsubdirectory for the filetype.  For example, DOCX files should be placed in\n`test_files\\docx\\wordjs` and RTF files should be in `test_files\\rtf\\wordjs`.\n\nEvery test file should be accompanied by a plain text `.txt` representation\nwhose filename is the original filename appended with `.txt`.  For example, the\nDOCX file `test_files\\docx\\wordjs\\foo.docx` pairs with the plain text file `test_files\\docx\\wordjs\\foo.docx.txt`\n\n**Generating Baselines using Word for Windows**\n\n0. Ensure you have PowerShell version 7.0 or greater\n1. Run `Set-ExecutionPolicy RemoteSigned` OR `Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass` in Powershell (PS) Admin 7.0\n2. Have the PS script in the root of the repo\n3. Run `.\\generate_txt.ps1 .\\test_files\\EXT_TYPE\\FOLDER` (ex. `.\\generate_txt.ps1 .\\test_files\\docx\\apachepoi`)\n\nOn first run, if a test file does not have an accompanying `.txt` file, the\nscript will open Word and save the file as plaintext.  Word will rapidly open\nand close during this process.\n\nThe script will not attempt to open Word or try to generate `.txt` files if they\nalready exist.  After a clean run, Word should not open on future runs.\n\nThe script will halt for documents that are broken in certain ways.  Word will\ndisplay a prompt, stalling the automated process.  Those documents can be\nskipped by creating a `.skip` file as described below.\n\n\n**Skipping Files**\n\nThe script will look for files with the `.skip` extension and skip processing\nthe base file.  For example, if `test_files\\docx\\wordjs\\Hello.docx.skip` exists,\nthe script will not attempt to process `test_files\\docx\\wordjs\\Hello.docx`\n\nWhen the UI blocks (for example, on a VBA error with `ThisDocument`), the\ncorresponding `.skip` file should be created manually.  The script merely tests\nif the file exists, so the content is immaterial and a single letter suffices.\n\n**Generating `.skip` files**\n\nThe script will attempt to open password-protected documents using the password\n\"WordJS\".  The script will not halt but it will not generate a text file.  With\na few adjustments, the script can generate `.skip` files for those cases\n\n1. Uncomment [L27-29](https://github.com/SheetJS/js-word/blob/master/generate_txt.ps1#L27-L29) in the script\n2. Comment [L26](https://github.com/SheetJS/js-word/blob/master/generate_txt.ps1#L26) in the script\n3. Rerun the script\n4. Undo Step 1 and 2\n\n\n## License\n\nPlease consult the attached LICENSE file for details.  All rights not explicitly\ngranted by the Apache 2.0 License are reserved by the Original Author.\n\n\n## References\n\n<details>\n  <summary><b>OSP-covered Specifications</b> (click to show)</summary>\n\n - `MS-CFB`: Compound File Binary File Format\n - `MS-DOC`: Word (.doc) Binary File Format\n - `RTF`: Rich Text Format\n\n</details>\n\n- ISO/IEC 29500:2012(E) \"Information technology — Document description and processing languages — Office Open XML File Formats\"\n- Open Document Format for Office Applications Version 1.3 (25 December 2019)\n\n[![Analytics](https://ga-beacon.appspot.com/UA-36810333-1/SheetJS/js-word?pixel)](https://github.com/SheetJS/js-word)\n","publish_time":1595354607187,"_cnpm_publish_time":1595354607187,"dist-tags":{"latest":"0.4.0"}}