#!/usr/bin/env node

"use strict"

const DESTINATION_DIR = "./resources"
const PUBLIC_KEY = "pubkey.pem";
const PRIVATE_KEY = "privkey.pem";

const child_process = require('child_process');
const path = require('path');

child_process.execSync(`openssl genrsa -out ${path.join(DESTINATION_DIR, PRIVATE_KEY)} 2048`);
child_process.execSync(`openssl rsa -in ${path.join(DESTINATION_DIR, PRIVATE_KEY)} -pubout -out ${path.join(DESTINATION_DIR, PUBLIC_KEY)}`);

@@ -18,22 +18,8 @@
 de%0A%0A
-%22use strict%22%0A%0A
 cons
@@ -38,17 +38,17 @@
 N_DIR = 
-%22
+'
 ./resour
@@ -50,17 +50,18 @@
 esources
-%22
+';
 %0Aconst P
@@ -72,17 +72,17 @@
 C_KEY = 
-%22
+'
 pubkey.p
@@ -83,17 +83,17 @@
 bkey.pem
-%22
+'
 ;%0Aconst 
@@ -106,17 +106,17 @@
 E_KEY = 
-%22
+'
 privkey.
@@ -122,9 +122,9 @@
 .pem
-%22
+'
 ;%0A%0Ac
@@ -129,26 +129,25 @@
 %0Aconst child
-_p
+P
 rocess = req
@@ -201,26 +201,25 @@
 th');%0A%0Achild
-_p
+P
 rocess.execS
@@ -295,26 +295,25 @@
 048%60);%0Achild
-_p
+P
 rocess.execS

Fix jwt keygen linter issues