{"id":32643403,"url":"https://github.com/rtk/node-confluence-content-id-parser","last_synced_at":"2025-10-31T03:54:18.617Z","repository":{"id":45229940,"uuid":"397208483","full_name":"RTK/node-confluence-content-id-parser","owner":"RTK","description":"A CLI util to request and parse a confluence page to extract strings from tables","archived":false,"fork":false,"pushed_at":"2022-01-05T12:58:12.000Z","size":329,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T14:58:19.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/RTK.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-08-17T10:24:03.000Z","updated_at":"2024-07-18T15:22:34.000Z","dependencies_parsed_at":"2022-09-05T18:11:44.682Z","dependency_job_id":null,"html_url":"https://github.com/RTK/node-confluence-content-id-parser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/RTK/node-confluence-content-id-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTK%2Fnode-confluence-content-id-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTK%2Fnode-confluence-content-id-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTK%2Fnode-confluence-content-id-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTK%2Fnode-confluence-content-id-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RTK","download_url":"https://codeload.github.com/RTK/node-confluence-content-id-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTK%2Fnode-confluence-content-id-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281925791,"owners_count":26584821,"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","status":"online","status_checked_at":"2025-10-31T02:00:07.401Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-31T03:54:12.887Z","updated_at":"2025-10-31T03:54:18.602Z","avatar_url":"https://github.com/RTK.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-confluence-content-id-parser\n\n## About\n\nThis project provides a Command Line Interface (CLI) for automatic data processing\nof Atlassian Confluence instances e.g. for localization purposes.\n\nThe `node-confluence-content-id-parser` requests a confluence instance with\ncredentials and crawls all tables of a destination page. Afterwards all tables\nwill be broke up into maps of language identifiers and string identifiers. All\nmaps will be merged in the end and encoded into a JavaScript Object Notation\nstring which will be persisted into a file named after its corresponding\nlanguage identifier.\n\n### Example\n\nYour confluence instance hosts a page e.g. `Translations for our landingpage`\nwith the page identifier `123456`. The page contains a table, e.g.\n\n| String-Id    | en                      | es                                |\n| ------------ | ----------------------- | --------------------------------- |\n| headline     | Welcome to our page     | Bienvenido a nuestra página       |\n| sub-headline | This is our landingpage | Esta es nuestra página de destino |\n\nWhen invoking the tool with the arguments\n\n-   --confluence-base-uri=https://ourcompanies.confluence\n-   --confluence-page-id=123456\n-   --confluence-username=MyUsername\n-   --confluence-user-token=MyPassword\n-   --recognition-pattern=^String-Id$\n-   --output-directory=i18n\n\nThere will be two files in the `i18n` directory:\n\n-   en.json\n-   es.json\n\nWith the following contents:\n\n_en.json_\n\n```\njson\n{\n    \"headline\": \"Welcome to our page\",\n    \"sub-headline\": \"This is our landingpage\"\n}\n```\n\n_es.json_\n\n```\njson\n{\n    \"headline\": \"Bienvenido a nuestra página\",\n    \"sub-headline\": \"Esta es nuestra página de destino\"\n}\n```\n\n## Installation\n\n```shell\n$ npm install @rtk/node-confluence-content-id-parser\n```\n\n### Usage\n\n```shell\n$ node-confluence-content-id-parser\n  \\ --confluence-base-uri=$URI\n  \\ --confluence-page-id=$ID\n  \\ --confluence-username=$USERNAME\n  \\ --confluence-user-token=$TOKEN\n  \\ --output-directory=$OUTPUT_DIRECTORY\n  \\ --recognition-pattern=$RECOGNITION_PATTERN\n  \\ --recognitionFlags=$RECOGNITION_FLAGS\n```\n\n#### Arguments\n\n| Argument              | Description                                                                                                                    | Required | Default value          |\n| --------------------- | ------------------------------------------------------------------------------------------------------------------------------ | -------- | ---------------------- |\n| confluence-base-uri   | The base uri of your confluence instance: protocol, hostname and port                                                          | Yes      | -                      |\n| confluence-page-id    | The page id of your contents to be analyzed                                                                                    | Yes      | -                      |\n| confluence-username   | Your confluence username, uses new Personal Access Token Authentication if none is given                                       | No       | -                      |\n| confluence-user-token | Your confluence user token                                                                                                     | Yes      | -                      |\n| output-directory      | The directory to which your content-id files will be writte                                                                    | No       | output                 |\n| recognition-pattern   | The pattern (regular expression), which will be used to determine which table contains content-ids                             | No       | `^Content-Id$`         |\n| recognition-flags     | The regular expression flags to be applied to the `recognition-pattern`                                                        | No       | `i` (case insensitive) |\n| identifier-column     | The index of the column containing the key to be used                                                                          | No       | 0                      |\n| starting-column       | The column to start indexing language codes from. This can be useful when you have a column containing comments or annotations | No       | 1                      |\n| trim-content          | Should all keys and translations values be automatically trimmed (e.g remove whitespaces at beginning and end)                 | No       | true                   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtk%2Fnode-confluence-content-id-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtk%2Fnode-confluence-content-id-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtk%2Fnode-confluence-content-id-parser/lists"}