
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
TBone is an small JavaScript library for generating valid HTML. It is based on an article by Jason Grosman, "Behind the Code: Avoiding Spaghetti".
It is designed to work in NodeJS, Mongo's shell (via mongo-modules).
var tbone = require("tbone");
// Displaying an HTML 5 valid HTML page.
console.log(tbone.htmlDoc(
tbone.html(
tbone.head(
tbone.title("Hello World")
),
tbone.body(
tbone.h1("Hello World")
)
)
).toString());
tbone proviles a limited facility to concatinate CSS or JavaScript files. it would then render it in-line or write out a file and include it back via a relative link with the .as().
var tbone = require("tbone");
tbone.CSS.import("css/reset.js");
tbone.CSS.import("css/responsive.js");
tbone.CSS.import("css/ie-fixes.js");
tbone.JS.import("js/jquery-1.8.0.min.js");
tbone.JS.import("js/the-app.js");
// Displaying an HTML 5 valid HTML page.
console.log(tbone.htmlDoc(
tbone.html(
tbone.head(
tbone.title("Hello World"),
tbone.CSS.inline()
),
tbone.body(
tbone.h1("Hello World"),
tbone.JS.as("js/combined.js")
)
)
).toString());
var tbone = require("tbone");
tbone.CSS.import("css/reset.js");
tbone.CSS.import("css/responsive.js");
tbone.CSS.import("css/ie-fixes.js");
tbone.JS.import("js/jquery-1.8.0.min.js");
tbone.JS.import("js/the-app.js");
// Displaying an HTML 5 friendly div with CSS
// writting in-line and JS combined at bottom of div.
console.log(tbone.widget(
tbone.div(
tbone.h1("Hello World"),
),
tbone.CSS.inline(),
tbone.JS.as("js/combined.js")
)
).toString());
FAQs
A simple library to generate valid HTML markup.
The npm package tbone receives a total of 9 weekly downloads. As such, tbone popularity was classified as not popular.
We found that tbone demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.