Employee Spotlight
From Academia to Industry
Philipp Burckhardt recounts his journey from childhood computer fascinations, to building an e-learning platform at Carnegie Mellon University, and on to his current role at Socket.
pug-loader
Advanced tools
The jade loader is responsible for loading the depenendencies of a given jade file.
Readme
The jade loader is responsible for loading the depenendencies of a given jade file. It adds fullPath
and str
properties to every Include
and Extends
node. It also adds an ast
property to any Include
nodes that are loading jade and any Extends
nodes. It then recursively loads the dependencies of any of those included files.
npm install jade-load
var fs = require('fs');
var lex = require('jade-lexer');
var parse = require('jade-parser');
var load = require('jade-load');
// you can do everything very manually
var str = fs.readFileSync('bar.jade', 'utf8');
var ast = load(parse(lex(str, 'bar.jade'), 'bar.jade'), {
lex: lex,
parse: parse
});
// or you can do all that in just two steps
var str = fs.readFileSync('bar.jade', 'utf8');
var ast = load.string(str, 'bar.jade', {
lex: lex,
parse: parse
});
// or you can do all that in only one step
var ast = load.file('bar.jade', {
lex: lex,
parse: parse
});
MIT
FAQs
Pug loader module for webpack
The npm package pug-loader receives a total of 36,323 weekly downloads. As such, pug-loader popularity was classified as popular.
We found that pug-loader 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.
Employee Spotlight
Philipp Burckhardt recounts his journey from childhood computer fascinations, to building an e-learning platform at Carnegie Mellon University, and on to his current role at Socket.
Security News
Git dependencies in open source packages can introduce significant risks, including lack of version control, stability issues, dependency drift, and difficulty in auditing, making them potential targets for supply chain attacks.
Security News
Node.js has added experimental support for TypeScript, a move that highlights the growing importance of TypeScript in modern development.