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 1adc003 + 3853737 commit c39678dCopy full SHA for c39678d
index.d.ts
@@ -0,0 +1,19 @@
1
+// Type definitions for keypair 1.0
2
+// Project: https://www.npmjs.com/package/keypair
3
+// Definitions by: eskelter <https://github.com/eskelter>
4
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
+// TypeScript Version: 2.2
6
+export interface KeypairOptions {
7
+ bits?: number;
8
+ e?: number;
9
+}
10
+export interface KeypairResults {
11
+ public: string;
12
+ private: string;
13
14
+
15
+/**
16
+ * Get an RSA PEM key pair.
17
+ * @param opts
18
+ */
19
+export function keypair(opts?: KeypairOptions): KeypairResults;
0 commit comments