@rodolfoquendo/js-notifications
v1.0.7
Published
a notifications system to show and manage html notifications, with report and click urls
Downloads
5
Readme
js-notifications
Github repo
https://github.com/rodolfoquendo/js-notifications
NPM repo
https://www.npmjs.com/package/@rodolfoquendo/js-notifications
Why?
We have to keep in mind that all the javascript that is rendered in a browser is public So i will start doing all my javascript in the form of npm packages
This is for html notifications, this might be hooked up to an endpoint to push the notification event to the server
Installing
npm i @rodolfoquendo/js-notificationsHow?
<!DOCTYPE html>
<html>
<body>
<div id="notifications" data-report-url="https://example.com/path/to/listener" data></div>
</html>Testing
npm install && npm test && open coverage/lcov-report/index.htmlcoverage html report
open coverage/lcov-report/index.html