Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Statix is a minialistic static website generator.
Statix uses Swig as the default templating engine (if you're familiar with Django templates, Jinja or Twig, you'll feel right at home).
However, the beauty of Statix is that it supports a large amount of templating engines, so you can use whatever you want! (Thanks to consoldiate.js).
$ npm install -g statix
Statix is super minimalistic and thus only has 3 commands.
$ statix new
$ statix build
$ statix server
$ statix new project-name
$ cd project-name
You can run statix new
from anywhere. Running statix new
will generate a new project-name
folder in the current directory. The generated folder will have a statix.js
file, and a couple
other files as an example.
Statix projects only need a statix.js
file at the root of the directory. After you're familiar with Statix, you'll probably want to create a template folder that has a more tailored statix.js
file and other boilerplate type stuff and instead of using statix new
you'll just
use that folder as a base for your projects.
If you open statix.js, you can see all the options available. Comments are included next to each property.
cd
into project name
and run statix build
. Compare the source
and deploy
directories to get an idea of what Statix is doing.
You can run statix build
in any directory that has a statix.js
file.
Statix has a local webserver, for convenience. This means that you can view your project without having to rebuild everytime.
$ cd project-name
$ statix server
By default Statix, binds the webserver to port 8000. You can change this in the statix.js
file.
Go into statix.js
and change
template_engine : "swig",
to
template_engine : "jade",
or
template_engine : "hogan",
Yep! It's that easy!
Note: Only template engines supported by consolidate.js will work. If you want support for another template engine, fork consolidate.js and issue a pull request.
FAQs
Static website generator. Template Engine agnostic
We found that statix 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.