Skip to content

Commit

Permalink
fix readme references to old name
Browse files Browse the repository at this point in the history
  • Loading branch information
tmountjr committed Jun 3, 2024
1 parent 76ca635 commit f43a463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ JavaScript implementation of the "Edgio Token" (`ectoken`) - see main repo [ecto
## Install

```
$ npm install @edgio/js-ectoken
$ npm install @edgio/ectoken
```

## Usage

```js
const { ECToken, encrypt, decrypt } = require('@edgio/js-ectoken')
const { ECToken, encrypt, decrypt } = require('@edgio/ectoken')

const ec_token = new ECToken()
ec_token.addValue('ec_country_allow', 'US')
Expand All @@ -35,7 +35,7 @@ const plaintext = await decrypt('my-secret-key', token)
If installing this library as a replacement for [`ectoken-nodejs`](https://github.com/hattan/ectoken-nodejs), import the `V3` namespace instead:

```js
const { V3 } = require('@edgio/js-ectoken')
const { V3 } = require('@edgio/ectoken')

const token = await V3.encrypt('my-secret-key', 'some_param=valueA&some_other_param=valueB')
const plaintext = await V3.decrypt('my-secret-key', token)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@edgio/ectoken",
"version": "2.0.0",
"version": "2.0.1",
"description": "JS implementation of Edgio token (ectoken)",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit f43a463

Please sign in to comment.