latex-ub/services/web/scripts/plan-prices
2025-05-05 12:24:05 +00:00
..
.gitignore Init 2025-05-05 12:24:05 +00:00
additional-license-add-on-legacy-prices.json Init 2025-05-05 12:24:05 +00:00
package-lock.json Init 2025-05-05 12:24:05 +00:00
package.json Init 2025-05-05 12:24:05 +00:00
plans.mjs Init 2025-05-05 12:24:05 +00:00
README.md Init 2025-05-05 12:24:05 +00:00

A nodejs tool for reading plans prices from csv files and creating JSON objects.

Run npm install in order to install the dependencies.

The scripts will put the output results into the output folder.

Create localized and group plan pricing

Command node plans.mjs -f fileName -o outputdir - generates two json files:

  • localizedPlanPricing.json for /services/web/config/settings.overrides.saas.js
  • groups.json for /services/web/app/templates/plans/groups.json

The input file can be in .csv or .json format

  • .csv csv format
  • .json json format from the recurly_prices.mjs --download script output