{"id":13989875,"url":"https://github.com/fredrb/codepen-downloader","last_synced_at":"2025-07-22T11:32:00.650Z","repository":{"id":57210201,"uuid":"53311947","full_name":"fredrb/codepen-downloader","owner":"fredrb","description":"Download showcase projects from codepen.io","archived":false,"fork":false,"pushed_at":"2019-02-23T16:32:00.000Z","size":46,"stargazers_count":56,"open_issues_count":2,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-15T10:57:06.875Z","etag":null,"topics":["codepen","command-line","download-showcases","tool","unit-tested"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fredrb.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-07T09:16:33.000Z","updated_at":"2024-10-07T02:32:59.000Z","dependencies_parsed_at":"2022-08-31T05:02:11.741Z","dependency_job_id":null,"html_url":"https://github.com/fredrb/codepen-downloader","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/fredrb%2Fcodepen-downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredrb%2Fcodepen-downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredrb%2Fcodepen-downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredrb%2Fcodepen-downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredrb","download_url":"https://codeload.github.com/fredrb/codepen-downloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227002348,"owners_count":17715719,"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":["codepen","command-line","download-showcases","tool","unit-tested"],"created_at":"2024-08-09T13:02:08.219Z","updated_at":"2024-11-29T09:30:33.319Z","avatar_url":"https://github.com/fredrb.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Codepen Downloader\n\n[![NPM Version][npm-image]][npm-url]\n[![Build Status](https://travis-ci.org/fredrb/codepen-downloader.svg?branch=master)](https://travis-ci.org/fredrb/codepen-downloader)\n[![NPM Downloads][npm-downloads]][npm-url]\n\nCodepen Downloader is a tool used to download showcases from [codepen](http://www.codepen.io) to your machine. This can be done either via a command line tool or from a provided download method.\n\n### Install\n\nIt's recommended to install globally since it can be used as command line tool.\n\n`npm install cpen -g`\n\nYou can then download any codepen with the following command:\n\n`cpen download \u003ccodepen url\u003e [destination]`\n\nYou can provide the full URL or only the codepen extension reference (e.g. `/samirc/pen/vGKoxj`)\n\n### Reference:\n\n##### Command line:\n\n`cpen download /samirc/pen/vGKoxj resource`\n\nThis will download `.html` `.js` and `.css` files to `resource` folder.\n\n##### cpen.Download(url, destination, onCompleteCallback, [options], [onTick]):\n\nYou can use this method to dynamically download codepen files.\n\n```js\nvar cpen = require('cpen');\n\ncpen.download('/samirc/pen/vGKoxj', 'resource', function(err) {\n  if (err) throw err;\n  console.log('Download completed!');\n});\n```\n\nThe options property is used to select which files should be downloaded. Example: `['html', 'css', 'js']`\n\n```js\nvar cpen = require('cpen');\n\ncpen.download('/ge1doot/pen/aNVYPN', 'resource', function() {\n  if (err) throw err;\n  console.log('Downloaded JS file to folder');\n}, {\n  targetFiles : ['js'],\n  includeDependencies : true\n});\n\n```\n\n\n#### Contributing\n\nWant to contribute? [Check the recommendations](https://github.com/fredrb/codepen-downloader/blob/master/contributing.md).\n\n[npm-image]: https://img.shields.io/npm/v/cpen.svg\n[npm-downloads]: https://img.shields.io/npm/dm/cpen.svg\n[npm-url]: https://npmjs.org/package/cpen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredrb%2Fcodepen-downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredrb%2Fcodepen-downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredrb%2Fcodepen-downloader/lists"}