{"id":20572716,"url":"https://github.com/molnarmark/carbon-now-dir","last_synced_at":"2025-07-15T09:03:53.546Z","repository":{"id":57194307,"uuid":"177217692","full_name":"molnarmark/carbon-now-dir","owner":"molnarmark","description":"🎨 Generate beautiful images of your code in files in the specified directory.","archived":false,"fork":false,"pushed_at":"2019-03-23T13:30:20.000Z","size":39,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T22:02:38.413Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/molnarmark.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":"2019-03-22T22:37:35.000Z","updated_at":"2022-10-27T15:16:46.000Z","dependencies_parsed_at":"2022-09-01T23:41:26.856Z","dependency_job_id":null,"html_url":"https://github.com/molnarmark/carbon-now-dir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/molnarmark/carbon-now-dir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molnarmark%2Fcarbon-now-dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molnarmark%2Fcarbon-now-dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molnarmark%2Fcarbon-now-dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molnarmark%2Fcarbon-now-dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/molnarmark","download_url":"https://codeload.github.com/molnarmark/carbon-now-dir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molnarmark%2Fcarbon-now-dir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265424328,"owners_count":23762880,"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-11-16T05:23:18.010Z","updated_at":"2025-07-15T09:03:53.497Z","avatar_url":"https://github.com/molnarmark.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg width=100% src=\"https://user-images.githubusercontent.com/10369094/31211729-591d059c-a950-11e7-86af-fa5ea3d7dbac.png\"\u003e\u003c/p\u003e\n\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Maintenance](https://badgen.net/badge/Maintained%3F/Yes/green)](https://github.com/molnarmark/carbon-now-dir/graphs/commit-activity)\n\n**carbon-now-dir** wraps around [carbon-now-cli](https://github.com/mixn/carbon-now-cli) to generate beautiful images\nof the source code in the specified directory, matched by the specific wildcard.\n\n## Installation\n\n### npx\n\nYou can invoke `carbon-now-dir` directly by simply using `npx`\n\n```\nnpx carbon-now-dir\n```\n\n### npm\n\n```\nnpm install -g carbon-now-dir\n```\n\n### yarn\n\n```\nyarn global add carbon-now-dir\n```\n\n## Usage\n\nMost of the options available in **carbon-now-cli** are available in **carbon-now-dir** too.\n\nYou can invoke `carbon-now-dir --help`, which will show:\n\n```\nGenerate beautiful images of your code in files in the specified directory.\n\nUsage\n  $ carbon-now-dir \u003cdirectory\u003e -w \"*.js\"\nOptions\n  -l, --location       Image save location, default: cwd\n  -p, --preset         Use a saved preset\n  -h, --headless       Use only non-experimental Puppeteer features\n  -w, --wildcard       Use a wildcard for matching files in the directory\n  --config             Use a different, local config (read-only)\n\n```\n\n**NOTE:** The wildcard flag is required!\n\n### Presets\n\nYou can reuse presets created in **carbon-now-cli** by simply passing the -p or --preset flag with the preset name.\n\nAssuming you have a preset called `my-preset`, and you want to capture all JavaScript files in the `examples` directory,\nyou would write:\n\n```\ncarbon-now-dir examples -w \"*.js\" -p my-preset\n```\n\n### More\n\nfor more in-depth documentation, you can visit the repository for [carbon-now-cli](https://github.com/mixn/carbon-now-cli).\n\n## License\n\nMIT © [Mark Molnar](https://github.com/molnarmark)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolnarmark%2Fcarbon-now-dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmolnarmark%2Fcarbon-now-dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolnarmark%2Fcarbon-now-dir/lists"}