0.4.3 • Published 8 years ago

cpen v0.4.3

Weekly downloads
10
License
ISC
Repository
github
Last release
8 years ago

Codepen Downloader

NPM Version Build Status NPM Downloads

Codepen Downloader is a tool used to download showcases from codepen to your machine. This can be done either via a command line tool or from a provided download method.

Install

It's recommended to install globally since it can be used as command line tool.

npm install cpen -g

You can then download any codepen with the following command:

cpen download <codepen url> [destination]

You can provide the full URL or only the codepen extension reference (e.g. /samirc/pen/vGKoxj)

Reference:

Command line:

cpen download /samirc/pen/vGKoxj resource

This will download .html .js and .css files to resource folder.

cpen.Download(url, destination, onCompleteCallback, options, onTick):

You can use this method to dynamically download codepen files.

var cpen = require('cpen');

cpen.download('/samirc/pen/vGKoxj', 'resource', function(err) {
  if (err) throw err;
  console.log('Download completed!');
});

The options property is used to select which files should be downloaded. Example: ['html', 'css', 'js']

var cpen = require('cpen');

cpen.download('/ge1doot/pen/aNVYPN', 'resource', function() {
  if (err) throw err;
  console.log('Downloaded JS file to folder');
}, {
  targetFiles : ['js'],
  includeDependencies : true
});

Contributing

Want to contribute? Check the recommendations.

0.4.3

8 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.12

8 years ago

0.3.11

8 years ago

0.3.10

8 years ago

0.3.9

8 years ago

0.3.8

8 years ago

0.3.7

8 years ago

0.3.6

8 years ago

0.3.5

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago