{"id":13447734,"url":"https://github.com/pmdartus/snapline","last_synced_at":"2025-04-07T06:05:24.634Z","repository":{"id":57364586,"uuid":"52033173","full_name":"pmdartus/snapline","owner":"pmdartus","description":"Unleash your screenshots stored in Chrome Devtool timeline files","archived":false,"fork":false,"pushed_at":"2016-03-17T16:38:33.000Z","size":7632,"stargazers_count":393,"open_issues_count":1,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-18T19:01:10.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/pmdartus/timeline-screenshot","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/pmdartus.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":"2016-02-18T19:35:09.000Z","updated_at":"2024-02-12T17:28:48.000Z","dependencies_parsed_at":"2022-09-13T21:01:09.203Z","dependency_job_id":null,"html_url":"https://github.com/pmdartus/snapline","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/pmdartus%2Fsnapline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmdartus%2Fsnapline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmdartus%2Fsnapline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmdartus%2Fsnapline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmdartus","download_url":"https://codeload.github.com/pmdartus/snapline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601447,"owners_count":20964864,"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-07-31T05:01:25.515Z","updated_at":"2025-04-07T06:05:24.608Z","avatar_url":"https://github.com/pmdartus.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","DevTools tooling and ecosystem"],"sub_categories":["Multimedia"],"readme":"# snapline\n\n[![Circle CI](https://circleci.com/gh/pmdartus/snapline.svg?style=svg)](https://circleci.com/gh/pmdartus/snapline)\n\n\u003e Unleash your screenshots stored in Chrome Devtool timeline files\n\n![demo](demo.gif)\n\n## Features\n\n* Convert timeline to gif\n* Extract screenshots save in a timeline into a folder\n\n## Install\n\nBefore using snapline, please install `imageMagick` and ensure that your version of node is greater than `4.0`.\n\n```shell\nnpm install -g snapline\n```\n\n## CLI usage\n\n```shell\n\u003e snapline -h\n\nUsage: snapline \u003ctimeline\u003e [options]\n\nOptions:\n--help        Show help                                              [boolean]\n-o, --output  Output file name              [string] [default: \"timeline.gif\"]\n-f, --fps     Number of frames per seconds            [number] [default: \"10\"]\n```\n\n## Node usage\n\n```js\nconst snapline = require('../src')\nconst timeline = require('./my-awesome-timeline.json')\n\nsnapline.toGif(timeline)\n  .then(gifPath =\u003e console.log(`The gif(t) is ready: ${gifPath}!`))\n```\n\n## API\n\n### `snapline.toGif(timeline[, options])`\n\n* `timeline` \u003ctimelineEntry[]\u003e - The parsed JSON content of the timeline file\n* `options.output` \u003cString\u003e - path of the gif. default: `./timeline.gif`\n* `options.fps` \u003cNumber\u003e - Number of frames per seconds. default: `10`\n\nReturns a `Promise` that resolves with the path of the created gif\n\n### `snapline.toImages(timeline[, options])`\n\n* `timeline` \u003ctimelineEntry[]\u003e - The parsed JSON content of the timeline file\n* `options.output` \u003cString\u003e - folder path that will contains the screenshots. default: `./screenshots`\n* `options.fps` \u003cNumber\u003e - Number of frames per seconds. default: `10`\n\nReturns a `Promise` that resolves with the path of the path of the created directory\n\n## License\n\nMIT. See `/LICENSE`\n\n## Owner\n\nPierre-Marie Dartus - [@pmdartus](https://github.com/pmdartus)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmdartus%2Fsnapline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmdartus%2Fsnapline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmdartus%2Fsnapline/lists"}