Office-Addin-Manifest-Converter
This package provides the ability to convert an XML manifest to JSON manifest for Office add-ins.
Command-Line Interface
convert
Convert the Office add-in manifest from XML format to JSON format.
Syntax:
office-addin-manifest-converter convert <xml-manifest-file> [options]
xml-manifest-file
: path to the XML manifest file.
Options:
-o json-manifest-folder
or
--output json-manifest-folder
Specify the path to an output folder that will contain the generated JSON manifest file and related files.
API Usage
This package provides an API called convert. The API takes two parameters:
convert(inputXmlManifestFile: string, outputJsonManifestFolder: string);
inputXmlManifestFile
: path of the input XML manifest file.
outputJsonManifestFolder
: path of the output folder that will contain all generated files, including one JSON manifest file and a few icon files.
The following example converts an XML manifest file, C:\xmlManifests\myAddin.xml, to json manifest and put the converted files into C:\jsonManifests\myAddin folder.
var converter = require("office-addin-manifest-converter");
converter.convert("C:/xmlManifests/myAddin.xml", "C:/jsonManifests/myAddin");