{"id":15362540,"url":"https://github.com/jwilm/pygments-async","last_synced_at":"2025-04-05T19:45:37.687Z","repository":{"id":12882465,"uuid":"15558991","full_name":"jwilm/pygments-async","owner":"jwilm","description":"Fully asynchronous Node.js wrapper for Pygments","archived":false,"fork":false,"pushed_at":"2014-01-02T04:15:04.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T16:49:27.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jwilm.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":"2014-01-01T01:13:53.000Z","updated_at":"2014-01-09T20:57:21.000Z","dependencies_parsed_at":"2022-08-26T06:41:11.678Z","dependency_job_id":null,"html_url":"https://github.com/jwilm/pygments-async","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwilm%2Fpygments-async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwilm%2Fpygments-async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwilm%2Fpygments-async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwilm%2Fpygments-async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwilm","download_url":"https://codeload.github.com/jwilm/pygments-async/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393540,"owners_count":20931810,"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","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":"2024-10-01T13:02:13.414Z","updated_at":"2025-04-05T19:45:37.666Z","avatar_url":"https://github.com/jwilm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"pygments-async\n==============\n\nFully asynchronous wrapper for Pygments\n\n## Usage\n\nThere are two functions exported by the package - pygmentize and pygmentizeFile.\n\n### pygmentize\n\nHighlight a block of code\n\nExample:\n\n```javascript\nvar pygmentize = require('pygments-async').pygmentize\n  , markup;\n\npygmentize(\"puts 'Hello, world!'\", {lexer: 'ruby'}, function(err, out) {\n  // out contains pygmentized code\n  markup = out;\n});\n```\n\nAllowed options are:\n\n- `lexer`: Specify lexer for pygmentize\n- `formatter`: Specify pygmentize lexer\n\nOptions need not be specified. If no lexer is provided pygmentize will attempt\nto guess based on contents. The default formatter is `html`.\n\n### pygmentizeFile\n\nLoad a file and pygmentize it\n\n```javascript\nvar pygmentize = require('pygments-async').pygmentize\n  , markup;\n\npygmentizeFile(\"package.json\", function(err, out) {\n  // out contains pygmentized package.json\n  markup = out;\n});\n```\n\n## License\n\nMIT\n\n## Alternatives\n- [pygments](https://github.com/pksunkara/pygments.js)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwilm%2Fpygments-async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwilm%2Fpygments-async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwilm%2Fpygments-async/lists"}