Skip to content

Commit

Permalink
Updated extension for YAML files
Browse files Browse the repository at this point in the history
  • Loading branch information
Wildhoney committed Nov 6, 2013
1 parent 323001d commit 00394be
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,4 +1,4 @@
/example/Google_files
/.idea
/node_modules
/example/config.yaml
/example/config.yml
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -63,7 +63,7 @@ For further information about the CloudConvert API, please take a look at their
Putting it all together we can chain our methods:

```javascript
var config = __dirname + '/config.yaml',
var config = __dirname + '/config.yml',
file = __dirname + '/uploaded-files/Rio.jpg';

var $task = new CloudConvert(config).convert(file).from('jpg').into('png').process();
Expand All @@ -78,11 +78,11 @@ We keep the API key separate from the codebase – your YAML config **must**
apiKey: 123456789
```

Please refer to the `config.yaml.example` file in `example`. When you instantiate a new `CloudConvert` task, pass in the path to your YAML config.
Please refer to the `config.yml.example` file in `example`. When you instantiate a new `CloudConvert` task, pass in the path to your YAML config.

```javascript
// Current path plus "config.yaml".
var $config = __dirname + '/config.yaml',
// Current path plus "config.yml".
var $config = __dirname + '/config.yml',
$task = new CloudConvert($config);
```

Expand Down
1 change: 1 addition & 0 deletions example/config.yml
@@ -0,0 +1 @@
apiKey: NDxVPFF85BE3DfH54oVCj2s4-oA7FpHpS2RhhVzT8qdEEe0L9Di-FVkNl8c5cpLrwUszNT6qZAkfQnzUITCQPA
File renamed without changes.
2 changes: 1 addition & 1 deletion example/server.js
Expand Up @@ -18,7 +18,7 @@ app.all('*', function(request, response, next) {
next();
});

var config = __dirname + '/config.yaml',
var config = __dirname + '/config.yml',
file = __dirname + '/uploaded-files/Rio.jpg',
task = new CloudConvert(config).convert(file).from('jpg').into('png').process();

Expand Down

0 comments on commit 00394be

Please sign in to comment.