@irfanshadikrishad/cipher 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,12 @@
1
1
  #### @irfanshadikrishad/cipher
2
2
 
3
- Minimalist Cryptography Implementaion
3
+ A versatile and secure cryptographic library for implementing various cipher algorithms in Node.js applications.
4
+
5
+ #### Installation
6
+
7
+ ```bash
8
+ npm i @irfanshadikrishad/cipher
9
+ ```
4
10
 
5
11
  #### Usage
6
12
 
@@ -9,7 +15,7 @@ import { Cipher } from "@irfanshadikrishad/cipher"
9
15
 
10
16
  const ceaser = new Cipher.Ceaser(6)
11
17
 
12
- console.log(ceaser.encrypt("abx"))
18
+ console.log(ceaser.encrypt("hello world"))
13
19
  ```
14
20
 
15
21
  #### Available Ciphers
package/dist/Cipher.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Caesar } from "./ciphers/Ceaser.js";
1
+ import { Caesar } from "./ciphers/Caesar.js";
2
2
  import { Atbash } from "./ciphers/Atbash.js";
3
3
  import { Playfair } from "./ciphers/Playfair.js";
4
4
  import { Vigenere } from "./ciphers/Vigenere.js";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Cipher } from "./Cipher.js";
2
- import { Caesar } from "./ciphers/Ceaser.js";
2
+ import { Caesar } from "./ciphers/Caesar.js";
3
3
  import { Atbash } from "./ciphers/Atbash.js";
4
4
  import { Playfair } from "./ciphers/Playfair.js";
5
5
  import { Vigenere } from "./ciphers/Vigenere.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@irfanshadikrishad/cipher",
3
- "version": "1.0.0",
4
- "description": "Minimalist Cryptography",
3
+ "version": "1.0.2",
4
+ "description": "A versatile and secure cryptographic library for implementing various cipher algorithms in Node.js applications.",
5
5
  "homepage": "https://github.com/irfanshadikrishad/cipher#readme",
6
6
  "bugs": {
7
7
  "url": "https://github.com/irfanshadikrishad/cipher/issues"
@@ -13,6 +13,10 @@
13
13
  "files": [
14
14
  "dist"
15
15
  ],
16
+ "directories": {
17
+ "test": "test",
18
+ "lib": "src"
19
+ },
16
20
  "license": "MPL-2.0",
17
21
  "author": {
18
22
  "name": "Irfan Shadik Rishad"
@@ -31,18 +35,28 @@
31
35
  "format": "prettier . --write",
32
36
  "lint": "eslint . --ext .ts",
33
37
  "lint:fix": "eslint . --ext .ts --fix",
34
- "test": "echo \"No yet implemented!\" && exit 1",
38
+ "test": "jest ./tests",
35
39
  "prepare": "husky"
36
40
  },
37
41
  "devDependencies": {
38
42
  "@eslint/js": "^9.21.0",
43
+ "@types/jest": "^29.5.14",
39
44
  "@typescript-eslint/eslint-plugin": "^8.26.0",
40
45
  "@typescript-eslint/parser": "^8.26.0",
41
46
  "eslint": "^9.21.0",
42
47
  "globals": "^16.0.0",
43
48
  "husky": "^9.1.7",
49
+ "jest": "^29.7.0",
44
50
  "prettier": "^3.5.3",
51
+ "ts-jest": "^29.2.6",
45
52
  "typescript": "^5.8.2",
46
53
  "typescript-eslint": "^8.26.0"
47
- }
54
+ },
55
+ "keywords": [
56
+ "security",
57
+ "cipher",
58
+ "cryptography",
59
+ "encryption",
60
+ "decryption"
61
+ ]
48
62
  }
File without changes
File without changes