
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
node-aigis
Advanced tools
Aigis is a Node.js package that parses comments in your CSS and auto-generate a style guide.
See the Full-documents pxgrid.github.io/aigis/docs (This documents was generated by aigis. 🔗source
$ npm install --save-dev node-aigis
You can verify node-aigis was installed correctly by running:
$ ./node_modules/.bin/aigis -v
$ 1.x.x
aigis require "Config file" & "HTML Templates".
aigis init
This will create an aigis_config.yml
file (more on this below)
$ ./node_modules/.bin/aigis init
Created the following files and directories:
aigis_config.yml
aigis_assets
template_ejs
You can choose The following Template engines for generating style guide.
ejs
)jade
)hbs
)When you run aigis init
, add --engine
option.
e.g) choose jade
$ ./node_modules/.bin/aigis init --engine jade
After aigis init
, edit aigis_config.yml
. You have to write relative path to your source files on source
.
source:
- ./lib/css
- ./style.css
Initially, the configuration file contains
source: aigis_assets
, You can runaigis run
then generate sample style guide.
Write following code on CSS comment block (/* ~ */
)
It's easy to add Comments. For example.
---
name: base button
category: module/button
---
## This is base button
* Base button style.
* Use `a` or `button` tag.
```html
<a class="btn">Button</a>
```
You're finally ready to generate a style guide!
$ ./node_modules/.bin/aigis run -c ./aigis_config.yml
Then you get following output.
See the documents
FAQs
For documenting CSS and generating styleguide
The npm package node-aigis receives a total of 537 weekly downloads. As such, node-aigis popularity was classified as not popular.
We found that node-aigis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.