Comparing version 0.7.0 to 0.7.1
{ | ||
"name": "crex", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Creative Exchange SDK for Javascript", | ||
@@ -5,0 +5,0 @@ "author": "Mateusz Luczak <mateusz.luczak@outlook.com>", |
@@ -1,2 +0,3 @@ | ||
<img width="200px" src="http://zg.cognifide.com/galaxite/img/zg_logo.svg"> | ||
<img width="250px" src="http://zg.cognifide.com/galaxite/img/zg_logo.svg"> | ||
<br> | ||
@@ -6,3 +7,3 @@ ## Creative Exchange SDK | ||
## Usage | ||
## SDK | ||
@@ -14,19 +15,38 @@ ```bash | ||
Use with node.js or module bundler like Webpack | ||
```js | ||
var CrEx = require('crex'); | ||
var crex = new CrEx({ | ||
user: 'admin', | ||
password: 'admin', | ||
address: 'localhost', | ||
port: 4502 | ||
}); | ||
var crex = new CrEx(); | ||
crex.exportGetAllPackages() | ||
.then(function(response) { | ||
console.log(response); | ||
}) | ||
.catch(function(error) { | ||
console.log(error); | ||
}); | ||
``` | ||
.then((packages) => console.log(packages)) | ||
.catch((err) => console.log(err)) | ||
``` | ||
Full docummentation and examples can be found here | ||
## CLI | ||
Package can also be installed globally as a CLI | ||
```bash | ||
$ npm install crex -g | ||
``` | ||
### Exporting package | ||
```bash | ||
ce export /content/showcase/default/en_gb/home | ||
``` | ||
### Importing package | ||
```bash | ||
ce import -c etc | ||
``` | ||
Full documentation of available commands and options can be found here | ||
## License | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164104
51