<commit_before># Codepen Downloader

[![NPM Version][npm-image]][npm-url]
[![Build Status](https://travis-ci.org/fredrb/codepen-downloader.svg?branch=master)](https://travis-ci.org/fredrb/codepen-downloader)

Codepen 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.

### 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`)

### Examples

##### Command line:

`cpen download /samirc/pen/vGKoxj resource`

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

##### Code:

The same example as above can be translated to the following snippet:

```js
var cpen = require('cpen');

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

#### Contributing

Want to contribute? [Check the recommendations](https://github.com/fredrb/codepen-downloader/blob/master/contributing.md).

[npm-image]: https://img.shields.io/npm/v/cpen.svg
[npm-url]: https://npmjs.org/package/cpen
<commit_msg>npm downloads badge<commit_after># Codepen Downloader

[![NPM Version][npm-image]][npm-url]
[![Build Status](https://travis-ci.org/fredrb/codepen-downloader.svg?branch=master)](https://travis-ci.org/fredrb/codepen-downloader)
[![NPM Downloads][npm-downloads]][npm-url]

Codepen 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.

### 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`)

### Examples

##### Command line:

`cpen download /samirc/pen/vGKoxj resource`

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

##### Code:

The same example as above can be translated to the following snippet:

```js
var cpen = require('cpen');

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

#### Contributing

Want to contribute? [Check the recommendations](https://github.com/fredrb/codepen-downloader/blob/master/contributing.md).

[npm-image]: https://img.shields.io/npm/v/cpen.svg
[npm-downloads]: https://img.shields.io/npm/dm/cpen.svg
[npm-url]: https://npmjs.org/package/cpen

{'fraction_non_alphanumeric': 0.14370422043948378, 'fraction_numerical': 0.0, 'mean_word_length': 4.759036144578313, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 11, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4344494', 'n_tokens_mistral': 975, 'n_tokens_neox': 952, 'n_words': 286}