
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Simple HTML framework for express
npm install nulls
The nulls framework is a wrapper around express.js
and other useful modules with the goal of making the process of
developing websites quicker and easier.
This framework offers a wide range of configuration options while making everything as secure as possible.
Writing dynamic HTML was never as easy as with nulls!
The HTML files are being parsed on the server using cheerio,
making DOM modifications simple and intuitive.
nulls adds a couple of custom HTML attributes,
which are parsed on the server and removed completely
on the client. Internal handlers receive the request object
with parsed cookies, and additional arguments if provided.
Since internal handlers are executed directly in the framework, it is super easy to integrate modular logic, and you don't have to learn "yet another rendering language™" - use the all beloved JavaScript.
null-container - replace HTML in the element
null-list - iterate over something and make
a total html out of it; all further handlers
will be passed an additional argument: the current item
of the iterable; arguments persist to next levelsnull-adder - add HTML to the element (useful for SEO in e.g. <head>)
null-list - iterate and addnull-data - server-side data retrieval (useful for title and other placeholders)null-api - form (or button) with the parameter
null-upload - additional parameter to parse files server-sidenull-access - additional parameter to verify the API endpoint is called with correct permissions (or else Error 403)null-ajax - additional parameter to add client-side processing of an API requestnull-attr - handler returns name-value object; the attributes are set on elementnull-if - conditional executionnull-arg - pass an additional argument to all handlers on the elementExample:
root.html
<ul null-list="() => [{ 'v': 46 }, { 'v': 69, }, { 'v': 83 }]" null-adder="#partials/list-item.html">
</ul>
partials/list-item.html
<li null-data>
<script null-data>
const calculate = require("./lib/math.js");
return async (r, s, d) => {
const value = d.v;
return await calculate(value);
};
</script>
</li>
Result on the client:
<ul>
<li>1081</li>
<li>2415</li>
<li>3486</li>
</ul>
Here's a brief overview of all configs
available at creation of a nulls instance.
uploads - false or a path to the uploads folderuploadLimit - false or a total limit for one
API request with files attachedforceHTTPS - whether to redirect the clients to HTTPSinit - a function which receives the express app
hook - a function which is called on every request except the HEAD request
nulls - the folder where all HTML files are storedroot - the name of the "root HTML file" relative to nullsstatic - false or a path to statically served filesport - the local port to host the website
ready - a callback for when the server is up and runningpreprocessor - function to pre-process every single HTML chunkpostprocessor - function to post-process the result as HTMLtextprocessor - function to post-process the result as raw textsrcProviders - lookup for custom source/script providers
plugins - an array of config modifying functionsdomain - the host name ofnyour website
redirects - lookup for HTML redirects
sameorigin policy,
authentication may not work when landing on your website
from an external providerproxies - passed to app.set('trust proxy', proxies) in order
to securely process IP adresses
publicUploads - serve user-generated contentFAQs
Simple HTML framework for express
The npm package nulls receives a total of 25 weekly downloads. As such, nulls popularity was classified as not popular.
We found that nulls demonstrated a healthy version release cadence and project activity because the last version was released less than 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.