From 00394beab7170c9b7e5cc2c3a3f2f9dcd9c08117 Mon Sep 17 00:00:00 2001 From: Adam Timberlake Date: Wed, 6 Nov 2013 01:19:02 +0000 Subject: [PATCH] Updated extension for YAML files --- .gitignore | 2 +- README.md | 8 ++++---- example/config.yml | 1 + example/{config.yaml.example => config.yml.example} | 0 example/server.js | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 example/config.yml rename example/{config.yaml.example => config.yml.example} (100%) diff --git a/.gitignore b/.gitignore index c932072..ba1019f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /example/Google_files /.idea /node_modules -/example/config.yaml +/example/config.yml diff --git a/README.md b/README.md index 24e29f2..b840457 100644 --- a/README.md +++ b/README.md @@ -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(); @@ -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); ``` diff --git a/example/config.yml b/example/config.yml new file mode 100644 index 0000000..b6a943c --- /dev/null +++ b/example/config.yml @@ -0,0 +1 @@ +apiKey: NDxVPFF85BE3DfH54oVCj2s4-oA7FpHpS2RhhVzT8qdEEe0L9Di-FVkNl8c5cpLrwUszNT6qZAkfQnzUITCQPA \ No newline at end of file diff --git a/example/config.yaml.example b/example/config.yml.example similarity index 100% rename from example/config.yaml.example rename to example/config.yml.example diff --git a/example/server.js b/example/server.js index b458816..dd81a26 100644 --- a/example/server.js +++ b/example/server.js @@ -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();