{"library":"slownode","title":"slownode","description":"slownode is a minimal npm package (v0.5.3) that provides persistent event loop, emitter, promise, and slow function utilities. It ships with TypeScript type definitions. The package is in early development with many terms marked as TODO in the README. It is primarily an experimental tool for working with persistent event loops and custom JASM bytecode interpretation. Current release cadence is unknown. Differentiators include a unique bytecode interpreter approach (JASM) and persistent event loop patterns. Not suitable for production use.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install slownode"],"cli":null},"imports":["import { slownode } from 'slownode'","import { createEventLoop } from 'slownode'","import { JASMInterpreter } from 'slownode'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { createEventLoop, JASMInterpreter } from 'slownode';\n\nconst loop = createEventLoop();\nconst interpreter = new JASMInterpreter();\n\nloop.on('tick', () => {\n  console.log('Tick');\n});\n\nloop.start();\n\n// After some time\nsetTimeout(() => loop.stop(), 5000);","lang":"typescript","description":"Creates a persistent event loop and a JASM bytecode interpreter, then runs the loop for 5 seconds.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}