Skip to content

Commit a1e5da9

Browse files
Merge pull request #16 from textcortex/staging
Package name update across repo
2 parents 582f87b + c86c56a commit a1e5da9

File tree

9 files changed

+33
-29
lines changed

9 files changed

+33
-29
lines changed

README.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# [textcortext-hemingwai-javascript](https://textcortex.com/documentation/api)
1+
# [textcortex-hemingwai-js](https://textcortex.com/documentation/api)
22

3-
![textcortext-hemingwai-javascript](./textcortex_logo.png)
3+
![textcortex-hemingwai-js](./textcortex_logo.png)
44

55
TextCortex API javascript packages for generating content even faster! Generate product descriptions, blogs, ads and more using GPT architecture with a single request to TextCortex API a.k.a HemingwAI
66

@@ -9,7 +9,7 @@ TextCortex API javascript packages for generating content even faster! Generate
99
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
1010
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
1111

12-
- [textcortext-hemingwai-javascript](#textcortext-hemingwai-javascript)
12+
- [textcortex-hemingwai-js](#textcortex-hemingwai-js)
1313
- [Table of Contents](#table-of-contents)
1414
- [Installation and usage](#installation-and-usage)
1515
- [Get your api key:](#get-your-api-key)
@@ -23,24 +23,24 @@ TextCortex API javascript packages for generating content even faster! Generate
2323
- [🐞 Bugs](#-bugs)
2424
- [💡 Feature Requests](#-feature-requests)
2525
- [Maintainer/Creator](#maintainercreator)
26-
- [License](#license)
26+
- [License](#license)
2727

2828
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2929

3030
## Installation and usage
3131

32-
The easiest way to install textcortext-hemingwai-javascript is using npm or yarn.
32+
The easiest way to install textcortex-hemingwai-js is using npm or yarn.
3333

3434
```
35-
yarn add textcortext-hemingwai-javascript
35+
yarn add textcortex-hemingwai-js
3636
```
3737

3838
Or
3939

4040
for installation via yarn
4141

4242
```
43-
npm install textcortext-hemingwai-javascript
43+
npm install textcortex-hemingwai-js
4444
```
4545

4646
### Get your api key:
@@ -53,7 +53,7 @@ npm install textcortext-hemingwai-javascript
5353
Start generating content with a single line of code!
5454

5555
```js
56-
import { TextCortex } from "textcortext-hemingwai-javascript";
56+
import { TextCortex } from "textcortex-hemingwai-js";
5757

5858
const hemingwai = new TextCortex(YOUR_API_KEY);
5959

@@ -69,15 +69,19 @@ hemingwai.generateProductDescriptions({
6969
### Response:
7070

7171
```js
72-
[
73-
{
74-
generated_text: ` The JBL K8 In-Ear Noise Canceling Earbuds are designed to block out unwanted ambient noise while you're on the go. If you prefer music without distraction, these earphones will do the job for you. Made with a dynamic driver and an inline microphone for exceptional sound quality, they come in black and feature built-in volume control.`,
75-
rank: 0.9762,
76-
text_length: 336,
77-
word_frequency: [],
78-
word_count: 56,
79-
},
80-
];
72+
{
73+
status: "success",
74+
ai_results: [
75+
{
76+
generated_text: ` The JBL K8 In-Ear Noise Canceling Earbuds are designed to block out unwanted ambient noise while you're on the go. If you prefer music without distraction, these earphones will do the job for you. Made with a dynamic driver and an inline microphone for exceptional sound quality, they come in black and feature built-in volume control.`,
77+
rank: 0.9762,
78+
text_length: 336,
79+
word_frequency: [],
80+
word_count: 56,
81+
},
82+
],
83+
error: 200,
84+
}
8185
```
8286

8387
### API key related errors
@@ -145,7 +149,7 @@ Here is a brief summary of what those variables are:
145149

146150
## Examples
147151

148-
See [examples](https://github.com/textcortex/textcortext-hemingwai-javascript/tree/master/examples) for examples.
152+
See [examples](https://github.com/textcortex/textcortex-hemingwai-js/tree/main/examples) for examples.
149153

150154
Note: while generating ads, you can add your target segment as an option.
151155

@@ -188,4 +192,4 @@ We are happy. Please file an issue to suggest new features. Vote on feature requ
188192

189193
MIT
190194

191-
[bugs]: https://github.com/textcortex/textcortext-hemingwai-javascript/labels/bug
195+
[bugs]: https://github.com/textcortex/textcortex-hemingwai-js/labels/bug

examples/generate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { TextCortex } = require("textcortext-hemingwai-javascript");
1+
const { TextCortex } = require("textcortex-hemingwai-js");
22

33
let hemingwai = new TextCortex(YOUR_API_KEY);
44

examples/generateAds.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { TextCortex } = require("textcortext-hemingwai-javascript");
1+
const { TextCortex } = require("textcortex-hemingwai-js");
22

33
let hemingwai = new TextCortex(YOUR_API_KEY);
44

examples/generateBlog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { TextCortex } = require("textcortext-hemingwai-javascript");
1+
const { TextCortex } = require("textcortex-hemingwai-js");
22

33
let hemingwai = new TextCortex(YOUR_API_KEY);
44

examples/generateEmailBody.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { TextCortex } = require("textcortext-hemingwai-javascript");
1+
const { TextCortex } = require("textcortex-hemingwai-js");
22

33
let hemingwai = new TextCortex(YOUR_API_KEY);
44

examples/generateEmailSubject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { TextCortex } = require("textcortext-hemingwai-javascript");
1+
const { TextCortex } = require("textcortex-hemingwai-js");
22

33
let hemingwai = new TextCortex(YOUR_API_KEY);
44

examples/generateProductDescriptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { TextCortex } = require("textcortext-hemingwai-javascript");
1+
const { TextCortex } = require("textcortex-hemingwai-js");
22

33
let hemingwai = new TextCortex(YOUR_API_KEY);
44

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "textcortext-hemingwai-js",
2+
"name": "textcortex-hemingwai-js",
33
"version": "1.0.0",
44
"description": "TextCortex API javascript packages for generating content even faster!",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
7-
"repository": "git@github.com:textcortex/textcortext-hemingwai-javascript.git",
7+
"repository": "git@github.com:textcortex/textcortex-hemingwai-js.git",
88
"author": "abrehamgezahegn <gezahegnabereham@gmail.com>",
99
"license": "MIT",
1010
"scripts": {
@@ -23,7 +23,7 @@
2323
],
2424
"devDependencies": {
2525
"typescript": "^4.5.4",
26-
"textcortext-hemingwai-javascript": "^0.0.0"
26+
"textcortex-hemingwai-js": "^1.0.0"
2727
},
2828
"dependencies": {
2929
"axios": "^0.24.0"

0 commit comments

Comments
 (0)