{"id":15380977,"url":"https://github.com/brrd/msoconvert","last_synced_at":"2026-01-20T01:58:53.545Z","repository":{"id":50832983,"uuid":"353757934","full_name":"brrd/msoconvert","owner":"brrd","description":"Convert Word and Excel documents in Node.js (Windows only)","archived":false,"fork":false,"pushed_at":"2021-06-01T09:04:47.000Z","size":1414,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-14T07:05:42.142Z","etag":null,"topics":["convert","doc","docto","docx","office","windows","xls","xlsx"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brrd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-01T16:15:38.000Z","updated_at":"2021-06-01T09:04:50.000Z","dependencies_parsed_at":"2022-08-26T09:40:51.428Z","dependency_job_id":null,"html_url":"https://github.com/brrd/msoconvert","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brrd%2Fmsoconvert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brrd%2Fmsoconvert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brrd%2Fmsoconvert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brrd%2Fmsoconvert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brrd","download_url":"https://codeload.github.com/brrd/msoconvert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247500479,"owners_count":20948881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["convert","doc","docto","docx","office","windows","xls","xlsx"],"created_at":"2024-10-01T14:25:12.952Z","updated_at":"2026-01-20T01:58:53.515Z","avatar_url":"https://github.com/brrd.png","language":"JavaScript","readme":"# msoconvert\n\nConvert Word and Excel documents in Node.js (for Windows only). This is a wrapper around [DocTo](https://github.com/tobya/DocTo).\n\nMicrosoft Word/Excel must be installed on the system.\n\n## Installation\n\n```\nnpm install msoconvert --save\n```\n\n## Usage\n\n```javascript\nconst convert = require(\"msoconvert\");\n\n// All the folling options are strings:\nconvert({ \n  input, // Input file or directory path.\n  output, // Output file or directory path.\n\n  // The two following only apply if input is a directory:\n  inputExt, // Extension to search for if directory.\n  outputExt, // Output extension.\n\n  // Recommended:\n  encoding, // Output encoding (see below).\n\n  // Additional options:\n  use, // \"word\" (default) | \"excel\" | \"powerpoint\"\n  format, // wdSaveFormat for output (see below).\n  options // Additional arguments passed to docto.exe. Refer to DocTo documentation.\n})\n  // A promise is returned.\n  .then(() =\u003e console.log(\"done\"));\n```\n\nSee [DocTo documentation](https://github.com/tobya/DocTo) for more information about API and additional parameters.\n\n### `encoding`\n\nAvailable encodings can be found in `enums/msoencodings.json`. It is possible to avoid the `msoencoding` prefix.\n\nIf `encoding` is not defined, msoconvert will use the default encoding defined in MS Office application settings. It is recommended to always define an encoding.\n\n### `format`\n\n`wdSaveFormat` enums:\n* https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.interop.word.wdsaveformat\n* https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.interop.excel.xlfileformat\n\nIf `format` is not defined, msoconvert will try to guess the format from `outputExt` if provided (otherwise an error will be thrown).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrrd%2Fmsoconvert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrrd%2Fmsoconvert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrrd%2Fmsoconvert/lists"}