{"library":"raptor-util","title":"RaptorJS Utilities","description":"This library, `raptor-util`, is a collection of core utility functions designed for the RaptorJS framework, an end-to-end JavaScript toolkit initially developed by eBay for building adaptive modules and UI components. The package provides various common helpers, likely including object manipulation, type checking, and other foundational utilities to support the broader RaptorJS ecosystem. The current version is 3.2.0. However, the RaptorJS framework and its associated packages, including `raptor-util`, appear to be abandoned, with the last notable activity around 2017 and related npm packages last published around 2014-2015. It is no longer actively maintained or developed, making it unsuitable for new projects.","language":"javascript","status":"abandoned","last_verified":"Sun Apr 19","install":{"commands":["npm install raptor-util"],"cli":null},"imports":["const { extend } = require('raptor-util');","const { isObject } = require('raptor-util');","const { forEach } = require('raptor-util');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const { extend, isObject, forEach } = require('raptor-util');\n\n// Example: Extending an object\nconst obj1 = { a: 1, b: 2 };\nconst obj2 = { b: 3, c: 4 };\nconst merged = extend({}, obj1, obj2);\nconsole.log('Extended object:', merged); // Expected: { a: 1, b: 3, c: 4 }\n\n// Example: Checking if a variable is an object\nconsole.log('Is {}:', isObject({})); // Expected: true\nconsole.log('Is null:', isObject(null)); // Expected: false\n\n// Example: Iterating over an array or object\nconst items = ['apple', 'banana', 'cherry'];\nconsole.log('Iterating over items:');\nforEach(items, (item, index) => {\n  console.log(`  ${index}: ${item}`);\n});\n\nconst data = { name: 'Alice', age: 30 };\nconsole.log('Iterating over data:');\nforEach(data, (value, key) => {\n  console.log(`  ${key}: ${value}`);\n});","lang":"javascript","description":"This quickstart demonstrates importing `extend`, `isObject`, and `forEach` utilities using CommonJS `require` and showcases their basic usage for object merging, type checking, and iteration.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}