Post History
JavaScript (Node.js), 606 bytes for(_="=>\\\\ =j(...(a:').join`\\n`[q](/aa),/ / / d[c[___) .match(/.{.||]/g,=='.mapf=(n,m=([a,b]a?m(b)+a',l=10000n,j=, b,c=0a-c?[b(cj,b,c+1)]:[],b=[q='rep...
Answer
#2: Post edited
- # [JavaScript (Node.js)], 606 bytes
- <!-- language-all: lang-javascript -->
- <pre><code>for(_="=>\\\\  =j(...(a:').join`\\n`[q](/aa),/ / /	d[c[___) .match(/.{.||]/g,=='.mapf=(n,m=([a,b]a?m(b)+a',l=10000n,j=, b,c=0a-c?[b(cj,b,c+1)]:[],b=[q='replace'](/[\\//'?''/'r=+[n%l],c4,ir/10**i%10|0d=`  		''''`16}/g)a4}/g)e=b(m))g=([a]a.reverse()b)[\\.\\'.'?`'`.')h=[e(1]]0]],g(e(3]])g(2]])],k,i12,(y,g9,(x,m=y>4,n=x>4x-4?y>3&y<8?' ':h[m*2|n][m?y-8:y][n?x-5:x]|'`y-4?g:k=g,on?(o=f(n/lo?i+j(6,ii&&i<5?k'+o(.{4})./,,bb+'|'):i)'";G=/[-]/.exec(_);)with(_.split(G))_=join(shift());eval(_)
- </code></pre>
- [Try it online!][TIO-kioac2zt]
- [JavaScript (Node.js)]: https://nodejs.org
[TIO-kioac2zt]: https://tio.run/##FVJtT@owGA2@DMyIOl4KHxcTbSulYziNd1qW3C/m/oau2bo5xnBsOIiyiL@dW06e5uR5yZPznHQpv@QmrrL1dlyU78nhMC8rFLAbNhv6CgPTNIE5AH22RD1KaRfJjgsNTJdlVoTX175fhFf8UyDrUg5lGxPdMs1jgIt3HvNWEARNPNTAEWYTnNOV3MYLZNGfMwr2YH8qrJS0GYMnqrPuDBtzhgqyYohL0o2EJr0VivBIGpDkzJ4oFGTJOsSMSMwmmhzHHo9QrHeXHaJKIxsLlwsSsTb/ZLBK1rmME6jk8YHvWycW9OAAGhbUKzbixW0uSNxzSDasLHtyf5/d2pP9RH9n4TkA52a/3wfmRRNcgFMAm@qB06biJgzP7KdfK8UNeeYcWU9YuxGhVQdjPVXau1Ipp1XylVSbBOFG1MGX3Pep76s7oRfC0KAQ6wvGE9SyhdBbEyFIilT2IITagVpTxYJ8kKxnTwmqSdr7Q9BOOVPPHFKw3czRdmPHq2cPd/XrswdN6C746n66LwRfefX42a0FL7zd@NHdCWMPr0OtVvOp@8HSK1JqhYdKNkeFleull42W6Em5kN3dZa@P3ocBr0blJaI/zi@mFlHWatEI7iF2M2zAm5c3ZvHGeCgsmuySGAX4BX9n2wUK6GadZ1v0hnHAjj8EbRbZfIswfkm@ZK4GD3FZbMo8oXmZojn6m6X/ii2C9vTBeYQY48N/ "JavaScript (Node.js) – Try It Online"- This solution is longer than the [JS solution from SE](https://codegolf.stackexchange.com/a/216177), but this solution supports integers of unlimited size.
- # [JavaScript (Node.js)], 606 bytes
- <!-- language-all: lang-javascript -->
- <pre><code>for(_="=>\\\\  =j(...(a:').join`\\n`[q](/aa),/ / /	d[c[___) .match(/.{.||]/g,=='.mapf=(n,m=([a,b]a?m(b)+a',l=10000n,j=, b,c=0a-c?[b(cj,b,c+1)]:[],b=[q='replace'](/[\\//'?''/'r=+[n%l],c4,ir/10**i%10|0d=`  		''''`16}/g)a4}/g)e=b(m))g=([a]a.reverse()b)[\\.\\'.'?`'`.')h=[e(1]]0]],g(e(3]])g(2]])],k,i12,(y,g9,(x,m=y>4,n=x>4x-4?y>3&y<8?' ':h[m*2|n][m?y-8:y][n?x-5:x]|'`y-4?g:k=g,on?(o=f(n/lo?i+j(6,ii&&i<5?k'+o(.{4})./,,bb+'|'):i)'";G=/[-]/.exec(_);)with(_.split(G))_=join(shift());eval(_)
- </code></pre>
- [Try it online!][TIO-kioac2zt]
- [JavaScript (Node.js)]: https://nodejs.org
- [TIO-kioac2zt]: https://tio.run/##JVJtb6owGI17QRfMNt/Qj2TJ1nbWIorOsVWS@2W5v6E0UBgiDsGh2ZXM/XZvvffkaU/69OTJ6UlX4ktswyLZ7AZZ/h4dj4u8gB69o/OeK9HVdV3Tu1qHrmCbENKCommDBiKrPMn821vXzfwb9smhcS16oo6wauj6qbSrdxaymud5VdRTtBP0qnZJ1mIXLqFBvi@IdtAO59yIcZ1ScCZvNs1eZUFhhtcUMoFbAVeEs4YB6osGwCk1hxIZXtEm1gMc0qEiBqHDAhiqrVUTy1bfRNxmHAe0zj4pKKJNKsIISHus67rGmQEc0AUNA6gF7bPsPuU4bFs46RWGOXx8TO7N4WGovlP/UtMu9U6no@lXVe1KO9dAVS7tvCq5CvwLc/pjxKgiLqwTqxGtVwK4biKkxtJ7S0jnpIi@omIbQVQJmuiauS5xXflO4PjAbxCA1CVlEayZnKu1Iec4hvI05lzOgLWRZI4/cNI2RxiWOG4/Y7iXyZRzC2d0P7eU/cByyvn4oXydOUAH9pKtH0eHjLO1Uw5mdslZ5uwHE3vPGwdw6yul1Mf2B41vcK5kDszpAmZGquZO0l/BqUwheXhIXifORwPc9PNrSL6tH0QMLKNVgj44AGQnqAHuXt6owSqDHjdItI9C6KEX9CfZLaFHtps02cE3hDx6@iFwu0wWO4jQS/QlUik8hnm2zdOIpHkMF/BXEv/OdhBYE8ucWJPR2JpMn2bPz6PxkzX9v83@9SRLMk8CgBA6/gU "JavaScript (Node.js) – Try It Online"
- This solution is longer than the [JS solution from SE](https://codegolf.stackexchange.com/a/216177), but this solution supports integers of unlimited size.
#1: Initial revision
# [JavaScript (Node.js)], 606 bytes <!-- language-all: lang-javascript --> <pre><code>for(_="=>\\\\  =j(...(a:').join`\\n`[q](/aa),/ / /	d[c[___) .match(/.{.||]/g,=='.mapf=(n,m=([a,b]a?m(b)+a',l=10000n,j=, b,c=0a-c?[b(cj,b,c+1)]:[],b=[q='replace'](/[\\//'?''/'r=+[n%l],c4,ir/10**i%10|0d=`  		''''`16}/g)a4}/g)e=b(m))g=([a]a.reverse()b)[\\.\\'.'?`'`.')h=[e(1]]0]],g(e(3]])g(2]])],k,i12,(y,g9,(x,m=y>4,n=x>4x-4?y>3&y<8?' ':h[m*2|n][m?y-8:y][n?x-5:x]|'`y-4?g:k=g,on?(o=f(n/lo?i+j(6,ii&&i<5?k'+o(.{4})./,,bb+'|'):i)'";G=/[-]/.exec(_);)with(_.split(G))_=join(shift());eval(_) </code></pre> [Try it online!][TIO-kioac2zt] [JavaScript (Node.js)]: https://nodejs.org [TIO-kioac2zt]: https://tio.run/##FVJtT@owGA2@DMyIOl4KHxcTbSulYziNd1qW3C/m/oau2bo5xnBsOIiyiL@dW06e5uR5yZPznHQpv@QmrrL1dlyU78nhMC8rFLAbNhv6CgPTNIE5AH22RD1KaRfJjgsNTJdlVoTX175fhFf8UyDrUg5lGxPdMs1jgIt3HvNWEARNPNTAEWYTnNOV3MYLZNGfMwr2YH8qrJS0GYMnqrPuDBtzhgqyYohL0o2EJr0VivBIGpDkzJ4oFGTJOsSMSMwmmhzHHo9QrHeXHaJKIxsLlwsSsTb/ZLBK1rmME6jk8YHvWycW9OAAGhbUKzbixW0uSNxzSDasLHtyf5/d2pP9RH9n4TkA52a/3wfmRRNcgFMAm@qB06biJgzP7KdfK8UNeeYcWU9YuxGhVQdjPVXau1Ipp1XylVSbBOFG1MGX3Pep76s7oRfC0KAQ6wvGE9SyhdBbEyFIilT2IITagVpTxYJ8kKxnTwmqSdr7Q9BOOVPPHFKw3czRdmPHq2cPd/XrswdN6C746n66LwRfefX42a0FL7zd@NHdCWMPr0OtVvOp@8HSK1JqhYdKNkeFleull42W6Em5kN3dZa@P3ocBr0blJaI/zi@mFlHWatEI7iF2M2zAm5c3ZvHGeCgsmuySGAX4BX9n2wUK6GadZ1v0hnHAjj8EbRbZfIswfkm@ZK4GD3FZbMo8oXmZojn6m6X/ii2C9vTBeYQY48N/ "JavaScript (Node.js) – Try It Online" This solution is longer than the [JS solution from SE](https://codegolf.stackexchange.com/a/216177), but this solution supports integers of unlimited size.