Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including thaj with all npm packages installed. Try it out:

const { Thanos } = require('thaj') const thanos = new Thanos() console.log(thanos.snap('Stan Lee')) // 'tnee' console.log(thanos.snap(Buffer.from('New York'))) // <Buffer 77 20 6f 6b> => 'w ok' console.log(thanos.snap(42)) // 21 console.log(thanos.snap(21)) // 10 or 11 console.log(thanos.snap(Math.PI)) // 1.1415926535897931 or 2.141592653589793 console.log(thanos.snap([2, 5])) // [2] or [5] // you can also pass in multiple values: console.log(thanos.snap('I am inevitable', 3000, [2, 5]))

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

thaj v1.1.1

Let's you erase half of almost whatever you want.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free