We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a8d22ba + 2bf96f0 commit ab38020Copy full SHA for ab38020
index.d.ts
@@ -0,0 +1,12 @@
1
+declare class Cryptr {
2
+ constructor(
3
+ secret: string,
4
+ options?: { pbkdf2Iterations?: number; saltLength?: number },
5
+ );
6
+
7
+ encrypt(value: string): string;
8
9
+ decrypt(value: string): string;
10
+}
11
12
+export = Cryptr;
package.json
@@ -3,6 +3,7 @@
"version": "6.1.0",
"description": "a simple encrypt and decrypt module for node.js",
"main": "index.js",
+ "types": "index.d.ts",
"directories": {
"test": "tests"
},
0 commit comments