
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
office-addin-manifest-converter
Advanced tools
A tool to convert Microsoft Office add-in manifests from XML format to JSON format.
This package provides the ability to convert an XML manifest to JSON manifest for Office add-ins.
Convert the Office add-in manifest from XML format to JSON format.
Syntax:
office-addin-manifest-converter convert <xml-manifest-file> [options]
Parameter:
xml-manifest-file
: path to the XML manifest file.
Options:
-o <string>
or --output <string>
Specify the path to an output directory that will contain the generated JSON manifest and related files. If there is no output directory specified, the default directory will have the same name as the input file's base name and be located at the same place of the input file. For example, if the input XML file is C:\xmlManifests\myAddin.xml, the default output directory will be C:\xmlManifests\myAddin.
-i
or --image-download
Specify that the conversion should download the images into the output directory.
-v
or --verbose
Specify that extra log messages should be written to console.
Example:
After the package has been installed globally, the following command converts the an XML manifest file, C:\xmlManifests\myAddin.xml, to json manifest and puts the converted files into C:\jsonManifests\myAddin directory.
office-addin-manifest-converter convert C:\xmlManifests\myAddin.xml -o C:\jsonManifests\myAddin -iv
In the command, both verbose
and image-download
flags are turned on.
This package provides an API called convert
. The API takes two required parameters and two optional ones:
convert(inputXmlManifestFile: string, outputJsonManifestFolder: string, imageDownload: boolean = false, verbose: boolean = false);
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.
imageDownload
: whether the conversion should download the images into the output directory.
verbose
: whether extra log messages should be written to console.
The following example converts an XML manifest file, C:\xmlManifests\myAddin.xml, to json manifest and puts the converted files into C:\jsonManifests\myAddin folder.
var converter = require("office-addin-manifest-converter");
converter.convert("C:/xmlManifests/myAddin.xml", "C:/jsonManifests/myAddin", true, false);
FAQs
A tool to convert Microsoft Office add-in manifests from XML format to JSON format.
We found that office-addin-manifest-converter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.