Skip to content

Commit 73e24b2

Browse files
authored
Merge pull request #2 from PreviewLinks/development
Merge Development
2 parents 86f8d9a + 8a49b02 commit 73e24b2

File tree

6 files changed

+96
-94
lines changed

6 files changed

+96
-94
lines changed

.github/SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Security Policy
22

3-
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
3+
If you discover any security related issues, please email [email protected] instead of using the issue tracker.

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) Flowframe <[email protected]>
3+
Copyright (c) PreviewLinks <[email protected]>
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

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
1-
# Previewify for Node.js
1+
# PreviewLinks for Node.js
22

3-
This is the official [Previewify](https://previewify.app) client for Node.js.
3+
This is the official [PreviewLinks](https://previewlinks.io) client for Node.js.
44

55
## Installation
66

77
You can install the package via NPM:
88

99
```bash
10-
npm install @flowframe/node-previewify
10+
npm install @previewlinks/node-previewlinks
1111
```
1212

1313
## Usage
1414

1515
### Creating an instance
1616

1717
```js
18-
const { Previewify } = require('@flowframe/node-previewify')
18+
const { PreviewLinks } = require('@previewlinks/node-previewlinks')
1919

20-
const previewify = new Previewify({ apiToken: '<YOUR_API_TOKEN>' })
20+
const previewlinks = new PreviewLinks({ apiToken: '<YOUR_API_TOKEN>' })
2121
```
2222

2323
### Methods
2424

2525
```js
2626
// List sites
27-
previewify
27+
previewlinks
2828
.listSites()
2929
.then(response => response.data)
3030

3131
// Show site
3232
let siteId = 1
3333

34-
previewify
34+
previewlinks
3535
.showSite(siteId)
3636
.then(response => response.data)
3737

3838
// Show site's templates
3939
let siteId = 1
4040

41-
previewify
41+
previewlinks
4242
.listSiteTemplates(siteId)
4343
.then(response => response.data)
4444

4545
// Generate a direct image URL (useful for downloading and storing images yourself)
4646
let siteId = 1
4747
let templateId = 1
4848
let fields = {
49-
'previewify:title': 'Hello from Node.js!',
50-
'previewify:subtitle': 'This is an example...',
49+
'previewlinks:title': 'Hello from Node.js!',
50+
'previewlinks:subtitle': 'This is an example...',
5151
}
5252

53-
previewify
53+
previewlinks
5454
.downloadImage({
5555
siteId,
5656
templateId,
@@ -65,6 +65,7 @@ Please review [our security policy](../../security/policy) on how to report secu
6565

6666
## Credits
6767

68+
- [Logan Craft](https://github.com/CraftLogan)
6869
- [Lars Klopstra](https://github.com/flowframe)
6970
- [All Contributors](../../contributors)
7071

package-lock.json

Lines changed: 74 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
2-
"name": "@flowframe/node-previewify",
3-
"description": "The official Previewify node.js SDK",
2+
"name": "@previewlinks/node-previewlinks",
3+
"description": "The official PreviewLinks node.js SDK",
44
"main": "src/index.js",
55
"version": "0.1.0",
66
"scripts": {
77
"prettier": "npx prettier --write ./src"
88
},
99
"keywords": [
10+
"previewlinks",
1011
"previewify"
1112
],
12-
"author": "Lars Klopstra",
13+
"author": "Logan Craft",
1314
"license": "MIT",
1415
"dependencies": {
1516
"axios": "^0.25.0"

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const axios = require('axios')
22
const crypto = require('crypto')
33

4-
class Previewify {
5-
#API_BASE_URL = 'https://previewify.app/api/v1'
4+
class PreviewLinks {
5+
#API_BASE_URL = 'https://previewlinks.io/api/v1'
66

7-
#GENERATE_BASE_URL = 'https://previewify.app/generate'
7+
#GENERATE_BASE_URL = 'https://previewlinks.io/generate'
88

99
constructor({ apiToken }) {
1010
this.apiToken = apiToken
@@ -51,5 +51,5 @@ class Previewify {
5151
}
5252

5353
module.exports = {
54-
Previewify,
54+
PreviewLinks,
5555
}

0 commit comments

Comments
 (0)