Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (() => {
- const dockerEnv = prompt('', '');
- const parsed = dockerEnv
- .split(';')
- .reduce((carry, item) => {
- console.log(item, new Date());
- carry += `${item.replace('- ', 'export ')}; `;
- return carry;
- }, '');
- console.log(parsed);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement