npm.io
0.0.3 • Published 4 years agoCLI

config64

Licence
ISC
Version
0.0.3
Deps
0
Size
7 kB
Vulns
0
Weekly
0

config64

import config64 from 'config64';

let config = {
  name: 'server config',
  version: '2022-02-02',
  greeting: 'hello',
  database_username: 'admin',
  database_password: '12345',
}

let configString = config64.encode(config);

// SERVER_CONFIG=${configString}

let importedConfig = config64.decode(configString);

Keywords