
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
derby-stylus
Advanced tools
Right after creating your Derby app, add:
// Add Stylus support
app.serverUse(module, 'derby-stylus');
Make sure this is before any calls to app.loadStyles()
.
After that you can use *.styl
files instead of *.css
index.js
var derby = require('derby');
var app = module.exports = derby.createApp('example', __filename);
// Add Stylus support (before loadStyles)
app.serverUse(module, 'derby-stylus');
app.loadViews (__dirname);
app.loadStyles(__dirname);
app.get('/', function(page, model) {
page.render();
});
index.html
<Body:>
<h1>Hello world</h1>
index.styl
body
padding 0
margin 0
FAQs
Derby plugin to add Stylus support
The npm package derby-stylus receives a total of 19 weekly downloads. As such, derby-stylus popularity was classified as not popular.
We found that derby-stylus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.