Package Exports
- @legendarymediatv/bootstrap
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@legendarymediatv/bootstrap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
LegendaryMediaTV Bootstrap
This is a Node.js framework for working with HTML and Bootstrap 4.5.
At this point it is mostly just HTML classes, but I wanted to get this package out there for testing purposes.
Getting started
Here's a sample of how to work with the Bootstrap framework. This sample features the demo()
function, which is great for testing out your custom-themed Bootstrap.
'use strict';
// add the Bootstrap framework
const bs = require('@legendarymediatv/bootstrap');
// create an HTML object (with a page title) and enable Bootstrap
const html = new bs.HTML('Bootstrap Demo');
html.bootstrap();
// add demo
html.add(bs.demo());
// display demo
console.log(html);
NOTE: rather than just logging to the console, you will probably want to run Express web server, add a route for the demo, and use
res.send(html.toString());
instead
Diving deeper
For more examples of usage, see test.js