Skip to content

Saves a Microsoft Project XML file to Mongo and/or local JSON file

License

Notifications You must be signed in to change notification settings

jolewis-ddn/mppArchiver

Repository files navigation

MPP Archiver

Saves a Microsoft Project XML file to Mongo and/or local JSON file

GitHub GitHub last commit GitHub issues Snyk Vulnerabilities for GitHub Repo GitHub code size in bytes

Configuration

Config File

Save this in the config/default.json file: All are optional and overridden by any command-line parameters

  • input: Input (XML) filename. If this parameter does not exist, a command line parameter must be provided
  • mongo: If this parameter does not exist, Mongo will not be used
    • user: User's username
    • password: User's password
    • host: Hostname or IP where Mongo is running
    • port: Mongo port (does not have a default)
    • options: Optional parameters for the Mongo connection URL
    • database: Database name
    • collection: Base collection name. All collections created will append various suffixes to this string
  • json:
    • output: Path and filename for output JSON file. If this parameter does not exist (and a command line parameter is not provided), a JSON file will not be generated

Command-Line Parameters

  • -V --version: Program version
  • -i --input: Input (XML) filename (required unless specified in the config file; see above)
  • -j --save-json: Filename to save the JSON output to
  • -w --wipe: Remove any existing collections before saving the data to Mongo

Installation and Use

  • git clone https://www.github.com/jolewis-ddn/mppArchiver
  • cd mppArchiver
  • npm i
  • node archive.js (plus any parameters)

Output

  • JSON file: Created by pixl-xml
  • Mongo database records: Parsed JSON content.
    • Numbers and Dates are converted from Strings before saving to the database.
    • All records are tagged with the timestamp when the record was processed/saved

Modules Used

GitHub package.json dependency version (prod) GitHub package.json dependency version (prod) GitHub package.json dependency version (prod) GitHub package.json dependency version (prod) GitHub package.json dependency version (prod)

License

MIT

About

Saves a Microsoft Project XML file to Mongo and/or local JSON file

Resources

License

Stars

Watchers

Forks

Packages

No packages published