1.1.0 • Published 2 years ago

@westbrown/testnode v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

testnode

This project is just there for me to test putting together widgets for webpages using npm and browserify. This module offers the "Now Widget", which is just a box with the current date and time. At its simplest, it can just be added like this:

... but it offers the possiblity of customization though css.

The module requires the date-and-time npm module. The way it is written, the new code is in index.js, which uses a node-style require to import date-and-time. The file forpage.js actually defines a global variable nowWidget for the widget factory function. The bundler browserify creates bundle.js, which is all the webpage needs.

npm version minor npm publish --access public