Spark API Wrapper in Node.js