Skip to content

Commit

Permalink
Merge pull request #9 from Dunkelhaiser/dev
Browse files Browse the repository at this point in the history
Updated documentation
  • Loading branch information
Dunkelhaiser authored Jan 24, 2024
2 parents 82500f5 + 807647d commit ceaf889
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @dunkelhaiser/caesar-cipher

## 2.0.1

### Patch Changes

- Updated documentation

## 2.0.0

### Major Changes
Expand Down
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,38 @@ bun add @dunkelhaiser/caesar-cipher

### Importing the Library

Using ESM
#### Using ESM

With named import

```ts
import { CaesarCipher } from "@dunkelhaiser/caesar-cipher";
```

With named imports

```ts
import { encrypt, decrypt } from "@dunkelhaiser/caesar-cipher";
```

With default import

```ts
import CaesarCipher from "@dunkelhaiser/caesar-cipher";
```

Using CommonJS

With default import

```ts
const CaesarCipher = require("@dunkelhaiser/caesar-cipher");
```

With named imports

```ts
const { CaesarCipher } = require("@dunkelhaiser/caesar-cipher");
const { encrypt, decrypt } = require("@dunkelhaiser/caesar-cipher");
```

### Encrypt a string
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": "@dunkelhaiser/caesar-cipher",
"version": "2.0.0",
"version": "2.0.1",
"description": "Implementation of the Caesar Cipher encryption algorithm in JavaScript. The Caesar Cipher is a classic substitution cipher technique where each letter in the plaintext is shifted a certain number of places down or up the alphabet.",
"private": false,
"keywords": [
Expand Down

0 comments on commit ceaf889

Please sign in to comment.