{"id":17579030,"url":"https://github.com/mlms13/simple-note","last_synced_at":"2026-01-20T05:02:50.336Z","repository":{"id":26390596,"uuid":"29840127","full_name":"mlms13/simple-note","owner":"mlms13","description":null,"archived":false,"fork":false,"pushed_at":"2015-03-28T05:53:49.000Z","size":164,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T22:47:54.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlms13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-26T01:43:29.000Z","updated_at":"2015-04-19T14:40:16.000Z","dependencies_parsed_at":"2022-08-28T23:20:57.262Z","dependency_job_id":null,"html_url":"https://github.com/mlms13/simple-note","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mlms13/simple-note","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlms13%2Fsimple-note","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlms13%2Fsimple-note/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlms13%2Fsimple-note/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlms13%2Fsimple-note/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlms13","download_url":"https://codeload.github.com/mlms13/simple-note/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlms13%2Fsimple-note/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28596087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-22T00:43:23.638Z","updated_at":"2026-01-20T05:02:50.307Z","avatar_url":"https://github.com/mlms13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Super Duper Easy Notifications\n\nHave you ever wanted to add a simple notification system to your web app? Of course you have. And you probably did, with very little code. But could your notification system handle queueing and replacing existing notifications? Well neither can this one.\n\n### Installation\n\nThis module is intended to be installed with npm and bundled into your app with Browserify.\n\n```js\nnpm install --save simple-note\n```\n\n### Usage\n\nYour notification system is made up of two parts: the notifier and the actual notes. Mostly, you'll interact with the notifier, passing it data that will create the individual notes.\n\nLet's assume you've required the module thusly:\n\n```js\nvar Notifier = require('simple-note');\n```\n\nCreate a new notification area:\n\n```js\n// all options passed to Notifier are optional\nvar notifications = new Notifier({\n  // element that notes will be appended to, defaults to document.body\n  container: document.querySelector('#my-notification-area'),\n\n  // an array of initial notes to be shown, see below for note options\n  notes: [{/* note options */}]\n});\n```\n\nOnce you've created a notification area, you can add notes, remove notes, and clear all notes.\n\n```js\n// add a new note to the notification area\nvar myFirstNote = notifications.addNote(/* note options */);\n\n// remove a single note\nnotifications.removeNote(myFirstNote);\n\n// or you could have cleared all notes\nnotifications.clear();\n```\n\nWhenever you want to pass note options to the notification area, they should looks something like this:\n\n```js\n{\n  message: \"This is your notification text.\",\n  type: \"info\", // will be used in the class name\n  duration: 4000 // optional time in milliseconds before the note is auto-removed\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlms13%2Fsimple-note","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlms13%2Fsimple-note","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlms13%2Fsimple-note/lists"}