Interactive Angular 19 demo for @sda/notification-elements-ui with 6 sections: Bell & Feed, Notification Center, Inbox, Comments & Threads, Mention Input, and Full-Featured layout. Includes mock data, dark mode toggle, and real-time event log. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
535 B
JavaScript
24 lines
535 B
JavaScript
//////////////////////////////////////////
|
|
// This example demonstrates what happends
|
|
// when you use the built-in JSON parser.
|
|
//////////////////////////////////////////
|
|
|
|
var fs = require('fs'),
|
|
stream = require('stream'),
|
|
needle = require('./../');
|
|
|
|
var url = 'http://ip.jsontest.com/',
|
|
resp = needle.get(url, { parse: true });
|
|
|
|
resp.on('readable', function(obj) {
|
|
var chunk;
|
|
|
|
while (chunk = this.read()) {
|
|
console.log('root = ', chunk);
|
|
}
|
|
});
|
|
|
|
resp.on('done', function() {
|
|
console.log('Done.');
|
|
});
|