@westbrown/testnode
v1.1.0
Published
My playing with creating an npm module.
Readme
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
