Skip to content

Commit 48d860a

Browse files
committed
Updated sources
1 parent 87b5203 commit 48d860a

37 files changed

Lines changed: 6383 additions & 4 deletions

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# node.js
2+
wwwroot/*.js
3+
node_modules
4+
typings
5+
lib
6+
7+
# vs code
8+
.vscode

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/*
2+
!lib/**/*
3+
!package.json
4+
!LICENSE
5+
!README.md

LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
The MIT License (MIT)
22

3-
Copyright (c) 2019 GroupDocs.Editor Cloud
3+
Copyright (c) 2003-2019 Aspose Pty Ltd
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,84 @@
1-
# groupdocs-editor-cloud-node
1+
# GroupDocs.Editor Cloud Node.js SDK
22
Node.js module for communicating with the GroupDocs.Editor Cloud API
3+
4+
GroupDocs.Editor Cloud allows you to edit documents across wide range of supported document types:
5+
* Microsoft Word documents - DOC, DOCX, DOCM, DOT, DOTM, DOTX, RTF, FlatOpc, WordML, TXT;
6+
* Microsoft Excel spreadsheets - XLS, XLSX, XLSM, XLT, XLTX, XLTM, XLSB, SpreadsheetML, CSV, TSV;
7+
* Microsoft PowerPoint presentations - PPT, PPTX, PPTM, POT, PPS etc.;
8+
* Open Document formats - ODT, OTT, ODS, ODP, OTP;
9+
* Markup - HTML, MHTML, XML.
10+
## Installation
11+
12+
A package `groupdocs-editor-cloud` is available at [npmjs.com](https://www.npmjs.com/package/groupdocs-editor-cloud). You can install it with:
13+
14+
```shell
15+
npm install groupdocs-editor-cloud
16+
```
17+
18+
## Getting Started
19+
20+
Please follow the [installation](#installation) procedure and then run the following JavaScript code:
21+
22+
```js
23+
// load the module
24+
var GroupDocs = require('groupdocs-editor-cloud');
25+
26+
// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
27+
var appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
28+
var appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
29+
30+
// construct EditorApi
31+
var infoApi = GroupDocs.InfoApi.fromKeys(appSid, appKey);
32+
33+
// retrieve supported file-formats
34+
infoApi.getSupportedFileFormats()
35+
.then(function (response) {
36+
console.log("Supported file-formats:")
37+
response.formats.forEach(function (format) {
38+
console.log(format.fileFormat + " (" + format.extension + ")");
39+
});
40+
})
41+
.catch(function (error) {
42+
console.log("Error: " + error.message)
43+
});
44+
```
45+
46+
Or compile and run same written in TypeScript:
47+
48+
```ts
49+
// load the module
50+
import { InfoApi } from "groupdocs-editor-cloud";
51+
52+
// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
53+
const appSid: string = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
54+
const appKey: string = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
55+
56+
// construct EditorApi
57+
const infoApi: InfoApi = InfoApi.fromKeys(appSid, appKey);
58+
59+
// retrieve supported file-formats
60+
infoApi.getSupportedFileFormats()
61+
.then((result) => {
62+
console.log("Supported file-formats:");
63+
result.formats.forEach((format) => {
64+
console.log(format.fileFormat + " (" + format.extension + ")");
65+
});
66+
})
67+
.catch((error) => {
68+
console.log("Error: " + error.message);
69+
});
70+
```
71+
72+
73+
## Licensing
74+
GroupDocs.Editor Cloud Node.js SDK licensed under [MIT License](LICENSE).
75+
76+
## Resources
77+
+ [**Website**](https://www.groupdocs.cloud)
78+
+ [**Product Home**](https://products.groupdocs.cloud/editor)
79+
+ [**Documentation**](https://docs.groupdocs.cloud/display/editorcloud/Home)
80+
+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/editor)
81+
+ [**Blog**](https://blog.groupdocs.cloud/category/editor)
82+
83+
## Contact Us
84+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/editor).

0 commit comments

Comments
 (0)