{"id":16582112,"url":"https://github.com/chalin/code-excerpter","last_synced_at":"2025-10-03T14:05:41.859Z","repository":{"id":66180923,"uuid":"125266042","full_name":"chalin/code-excerpter","owner":"chalin","description":"A line-based utility for extracting code regions.","archived":false,"fork":false,"pushed_at":"2018-05-11T16:46:14.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T02:24:33.790Z","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":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chalin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-14T19:52:07.000Z","updated_at":"2018-05-11T16:46:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"2bba8130-587a-47fe-9831-7be43c770b78","html_url":"https://github.com/chalin/code-excerpter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chalin/code-excerpter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalin%2Fcode-excerpter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalin%2Fcode-excerpter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalin%2Fcode-excerpter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalin%2Fcode-excerpter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chalin","download_url":"https://codeload.github.com/chalin/code-excerpter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalin%2Fcode-excerpter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278173367,"owners_count":25942293,"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-03T02:00:06.070Z","response_time":53,"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":"2024-10-11T22:31:33.988Z","updated_at":"2025-10-03T14:05:41.834Z","avatar_url":"https://github.com/chalin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# code-excerpter\n\nA line-based utility for extracting code regions.\n\n## Command line usage\n\n`code-excerpter \u003cexamples-dir-base\u003e \u003cfragment-dir\u003e [path-to-dir-or-file-to-excerpt-from]`\n\n## API\n\n```js\n  var excerpter = require('code-excerpter');\n  var options = { /* see below, but at a minimum: */\n    examplesDir: 'path to base of folder from which excerpts are generated',\n    fragmentsDir: 'path to base of folder where fragment files will be placed',\n  };\n  var fileOrDirToExcerptFrom = /* path to file or directory */;\n\n  excerpter.excerpt(options, fileOrDirToExcerptFrom)\n```\n\n## Options and default values\n\n```\n    // Whether old fragments should be deleted before new ones are generated:\n    clean: false,\n\n    // Path to base directory containing files from which excerpts will be created:\n    examplesDir: \"_examples\",\n\n    // Array of string, of glob patterns of files to search for code excerpt markers:\n    extns: ['*.css', '*.dart', '*.html', '*.js', '*.json', '*.scss', '*.ts', '*.yaml', '*.yml',],\n\n    // Excerpts get copied here with same subdir structure:\n    fragmentsDir: \"_fragments\",\n\n    // String, or array of string, of glob patterns of files to ignor:\n    ignore: ['**/node_modules/**', '**/dist/**', '**/build/packages/**', '**/build/test/**', '**/build/web/**', '**/.*/**'],\n\n    // Whether to process subdirectories under examplesDir:\n    recursive: true,\n\n    // Log level, one of 'debug', 'info', 'warn', or 'error':\n    logLevel: 'warn',\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalin%2Fcode-excerpter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchalin%2Fcode-excerpter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalin%2Fcode-excerpter/lists"}