{"name":"word","version":"0.2.2","description":"Contains functions that assist in working with strings.","keywords":["string helper","text helper","string","text"],"author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"dependencies":{"package":"1.0.0","lingo":"0.0.4","super":"0.0.1","slug":"0.1.1"},"devDependencies":{"mocha":"0.3.3","should":"0.3.2","coffee-script":"1.2.0"},"repository":{"type":"git","url":"git://github.com/vesln/word.git"},"homepage":"http://github.com/vesln/word","scripts":{"test":"cake test","prepublish":"cake build","postpublish":"cake clean"},"main":"./lib/word","engines":{"node":">= 0.6.0 < 0.7.0"},"_npmUser":{"name":"vesln","email":"hi@vesln.com"},"_id":"word@0.2.2","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.0","_defaultsLoaded":true,"dist":{"shasum":"d4896ea9b21d796fee27ea1fd7277438577bd136","tarball":"http://registry-npm.ywwl.com/word/download/word-0.2.2.tgz","integrity":"sha512-vpClppMxF+PZeTUVPUQyNtfEaXy6JDCFWoFB8WFYUOj9IJ6Wx7YAziag9uSkIFyd4lkfOD4/NDuv8Bz3jjSo9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGqDURRzJgcLyikJRJ6HWr43JViXlqeF91/LFo1m/2a8AiB4YBj3UA59uyzAVhAfsbk9XJfm8+AStxXlnpEmjbpGFA=="}],"size":10240,"noattachment":false,"key":"/word/-/word-0.2.2.tgz"},"maintainers":[{"name":"vesln","email":"hi@vesln.com"}],"directories":{},"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":1325842047023,"_cnpm_publish_time":1325842047023,"dist-tags":{"latest":"0.4.0"}}