Files
notification-elements-demo/node_modules/hyperdyperid/lib/str.js
Giuliano Silvestro 5d0c9ec7eb Initial commit: notification-elements-demo app
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>
2026-02-13 21:49:19 +10:00

14 lines
343 B
JavaScript

var defaultAlphabet = 'abcdefghijklmnopqrstuvwxyz0123456789';
function str(length, alphabet) {
alphabet = alphabet || defaultAlphabet;
var str = '';
var alphabetLength = alphabet.length;
for (var i = 0; i < length; i++) {
str += alphabet.charAt(Math.floor(Math.random() * alphabetLength));
}
return str;
}
exports.str = str;