Skip to content

Commit a2a7495

Browse files
committed
Adding .env.example file
1 parent 3c8fe23 commit a2a7495

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GREIP_TOKEN="your-api-token"

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Here's how you use the API Methods:
4242
```javascript
4343
const { Greip } = require("greip-node");
4444

45-
let greip = new Greip(process.env.YOUR_GREIP_TOKEN);
45+
let greip = new Greip(process.env.GREIP_TOKEN);
4646

4747
greip
4848
.Lookup({
@@ -61,7 +61,7 @@ greip
6161
```javascript
6262
const { Greip } = require("greip-node");
6363

64-
let greip = new Greip(process.env.YOUR_GREIP_TOKEN);
64+
let greip = new Greip(process.env.GREIP_TOKEN);
6565

6666
greip
6767
.BulkLookup({
@@ -80,7 +80,7 @@ greip
8080
```javascript
8181
const { Greip } = require("greip-node");
8282

83-
let greip = new Greip(process.env.YOUR_GREIP_TOKEN);
83+
let greip = new Greip(process.env.GREIP_TOKEN);
8484

8585
greip
8686
.ASN({
@@ -99,7 +99,7 @@ greip
9999
```javascript
100100
const { Greip } = require("greip-node");
101101

102-
let greip = new Greip(process.env.YOUR_GREIP_TOKEN);
102+
let greip = new Greip(process.env.GREIP_TOKEN);
103103

104104
greip
105105
.Profanity({
@@ -118,7 +118,7 @@ greip
118118
```javascript
119119
const { Greip } = require("greip-node");
120120

121-
let greip = new Greip(process.env.YOUR_GREIP_TOKEN);
121+
let greip = new Greip(process.env.GREIP_TOKEN);
122122

123123
greip
124124
.Country({
@@ -137,7 +137,7 @@ greip
137137
```javascript
138138
const { Greip } = require("greip-node");
139139

140-
let greip = new Greip(process.env.YOUR_GREIP_TOKEN);
140+
let greip = new Greip(process.env.GREIP_TOKEN);
141141

142142
greip
143143
.EmailValidation({
@@ -156,7 +156,7 @@ greip
156156
```javascript
157157
const { Greip } = require("greip-node");
158158

159-
let greip = new Greip(process.env.YOUR_GREIP_TOKEN);
159+
let greip = new Greip(process.env.GREIP_TOKEN);
160160

161161
greip
162162
.PhoneValidation({
@@ -176,7 +176,7 @@ greip
176176
```javascript
177177
const { Greip } = require("greip-node");
178178

179-
let greip = new Greip(process.env.YOUR_GREIP_TOKEN);
179+
let greip = new Greip(process.env.GREIP_TOKEN);
180180

181181
greip
182182
.PaymentFraud({
@@ -255,7 +255,7 @@ greip
255255
```javascript
256256
const { Greip } = require("greip-node");
257257

258-
let greip = new Greip(process.env.YOUR_GREIP_TOKEN);
258+
let greip = new Greip(process.env.GREIP_TOKEN);
259259

260260
greip
261261
.IBANValidation({

__tests__/greip.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ let greip: Greip;
55

66
beforeEach(() => {
77
dotenv.config();
8-
const token = process.env.TOKEN || "";
8+
const token = process.env.GREIP_TOKEN || "";
99
//? Force fail if token is not provided
1010
if (token === "") {
1111
throw new Error(
12-
"Please place the `TOKEN` in the .env file before running the tests."
12+
"Please place the `GREIP_TOKEN` in the .env file before running the tests."
1313
);
1414
}
1515
greip = new Greip(token);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "greip-node",
3-
"version": "1.0.0",
4-
"description": "Official Node.js library of Greip API",
3+
"version": "1.0.1",
4+
"description": "Official Node.js library for Greip API",
55
"author": {
66
"name": "Greip",
77
"email": "info@greip.io",

0 commit comments

Comments
 (0)