mirror of
https://github.com/danbulant/jose
synced 2026-05-22 05:49:01 +00:00
6 lines
270 B
JavaScript
6 lines
270 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = (b64, descriptor) => {
|
|
const newlined = (b64.match(/.{1,64}/g) || []).join('\n');
|
|
return `-----BEGIN ${descriptor}-----\n${newlined}\n-----END ${descriptor}-----`;
|
|
};
|