{"id":17766612,"url":"https://github.com/floatdrop/vinyl-git","last_synced_at":"2025-07-09T12:36:59.737Z","repository":{"id":19143721,"uuid":"22373928","full_name":"floatdrop/vinyl-git","owner":"floatdrop","description":"Vinyl adapter for working with git","archived":false,"fork":false,"pushed_at":"2014-10-29T18:26:48.000Z","size":244,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T01:31:43.789Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/floatdrop.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}},"created_at":"2014-07-29T09:04:55.000Z","updated_at":"2021-08-13T03:28:08.000Z","dependencies_parsed_at":"2022-09-09T09:10:19.193Z","dependency_job_id":null,"html_url":"https://github.com/floatdrop/vinyl-git","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fvinyl-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fvinyl-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fvinyl-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fvinyl-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatdrop","download_url":"https://codeload.github.com/floatdrop/vinyl-git/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243508145,"owners_count":20301960,"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-26T20:33:19.668Z","updated_at":"2025-03-15T13:30:51.831Z","avatar_url":"https://github.com/floatdrop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vinyl-git [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]\n\nGet files as Vinyl File objects from git.\n\n## Why\n\nUse it with [`husky`](https://github.com/typicode/husky). There are plenty projects, that are in terrible state, because of lacking of linting in development process. To get linting (and codestyle checks) in such kind of project and not be overwhelmed with linting errors from legacy code `vinyl-git` was created.\n\nJust replace `gulp.src` with `git.staged` and run linting on only files, that are prepeared for commiting (just do not forget to add precommit hook with, [`husky`](https://github.com/typicode/husky)).\n\n## Usage\n\n```js\nvar map = require('map-stream');\nvar git = require('vinyl-git');\n\nvar log = function(file, cb) {\n  console.log(file.path);\n  cb(null, file);\n};\n\ngit.staged()\n  .pipe(map(log))\n  .pipe(fs.dest('./output'));\n```\n\n\n## API\n\n### staged([options])\n\nReturns stream with currently staged files. Options are same as in [`vinyl-fs` src method](https://github.com/wearefractal/vinyl-fs#srcglobs-opt).\n\n# License\n\nMIT (c) 2014 Vsevolod Strukchinsky (floatdrop@gmail.com)\n\n[npm-url]: https://npmjs.org/package/vinyl-git\n[npm-image]: http://img.shields.io/npm/v/vinyl-git.svg\n\n[travis-url]: https://travis-ci.org/floatdrop/vinyl-git\n[travis-image]: http://img.shields.io/travis/floatdrop/vinyl-git.svg\n\n[depstat-url]: https://david-dm.org/floatdrop/vinyl-git\n[depstat-image]: https://david-dm.org/floatdrop/vinyl-git.svg?theme=shields.io\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fvinyl-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatdrop%2Fvinyl-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fvinyl-git/lists"}