{"id":19431995,"url":"https://github.com/derbingle/context","last_synced_at":"2026-05-18T00:32:53.725Z","repository":{"id":143798762,"uuid":"90804003","full_name":"derBingle/context","owner":"derBingle","description":"A nodejs wrapper for the ConTeXt document processing system.","archived":false,"fork":false,"pushed_at":"2017-05-10T02:11:35.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-08T21:43:19.825Z","etag":null,"topics":["context","nodejs","nodejs-modules","tex","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derBingle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-10T00:30:37.000Z","updated_at":"2017-05-10T02:02:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"093c3860-3e32-4c69-912a-63b870eb2c1b","html_url":"https://github.com/derBingle/context","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/derBingle/context","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derBingle%2Fcontext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derBingle%2Fcontext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derBingle%2Fcontext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derBingle%2Fcontext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derBingle","download_url":"https://codeload.github.com/derBingle/context/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derBingle%2Fcontext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["context","nodejs","nodejs-modules","tex","wrapper"],"created_at":"2024-11-10T14:33:36.527Z","updated_at":"2026-05-18T00:32:53.710Z","avatar_url":"https://github.com/derBingle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-context\n\n\u003e A simple, Promise-based nodejs wrapper for the awesome [ConTeXt](http://contextgarden.net) document language.\n\nCompiles your ConTeXt-flavored tex files to PDF, with all the same options available natively.\n\n\n## Install\n\u003e **Note:** This module assumes that context is in your `$PATH`. I recommend using [ConText Standalone](http://wiki.contextgarden.net/ConTeXt_Standalone) to get the latest version.\n\nWith npm...\n```\n$ npm install --save context\n```\n\n...or with yarn \n```\n$ yarn add context\n```\n\n## Usage\n\n```js\nconst context = require('context');\n\\\\ Simple example...\ncontext('hello.tex')\n\n\\\\ With options...\ncontext('hello.tex', {interface: 'en', purge: true}).then(() =\u003e {\n\tconsole.log('Document compiled!');\n});\n```\n\n\n## API\n\n### context(filepath, [options])\n\nReturns a promise that fulfills when compiling is complete..\n\n#### options\n\n##### interface\nContext equivalent: `--interface`\n\nType: `string`\nDefault: `en`\n\n| String | Language          |\n| ------ | ----------------- |\n| `en` . | English           |\n| `uk`   | British English   |\n| `de`   | German            |\n| `fr`   | French            |\n| `nl`   | Dutch             |\n| `cs`   | Czech             |\n| `it`   | Italian           |\n| `ro`   | Romanian          |\n| `pe`   | Farsi             |\n\n##### autopdf\n*Context equivalent: `--autopdf`*\n\nType: `boolean`\nDefault: `false`\n\nClose pdf file in viewer and start pdf viewer afterwards.  \n*Note: ConTeXt command does not work on macOS.*\n\n##### purge\n*Context equivalent: `--purgeall`*\n\nType: `boolean`\nDefault: `false`\n\nPurge accessory files after compile (`.log`, `.tuc`).\n\n##### module\n*Context equivalent: `--usemodule=list`*\n\nType: `string` or `array` \n\nList the [modules](http://wiki.contextgarden.net/Modules) to use in compiling your document.\n\n\n##### environment\n*Context equivalent: `--environment=list`*\n\nType: `string` or `array` \n\nLoad the given environment file(s) first.\n\n##### mode\n*Context equivalent: `--mode=list`*\n\nType: `string` or `array` \n\nEnable modes for conditional processing in your context file.\n\n##### path\n*Context equivalent: `--path=list`*\n\nType: `string` or `array` \n\nAdditional paths where context should look for files.\n\n##### variables\n*Context equivalent: `--arguments=list`*\n\nType: `string` or `object` \n\nVariables that can be accessed in your context file.\n\n## License\n\nMIT © [Luke Wilson](http://derbingle.blog)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderbingle%2Fcontext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderbingle%2Fcontext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderbingle%2Fcontext/lists"}