
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Andre is a Node.js file-watching template compiler for ejs and underscore templates. By default it will output compiled ejs templates as javascript files, although it can optionally output rendered templates files as well. In addition to ejs, Andre can also use underscore as its templating engine, or you can specify a custom template engine.
The example below would compile and watch ejs files in the 'src' directory and output javascript files in the 'dist' directory:
var andre = require('andre');
andre.watch('src', 'dist');
#### usage
andre.watch( watchPath, [ options | outputPath ], [callback] )
#### options
- extension - used to determine which files to watch and compile; set to false or '*' for all files in a directory
- engine - specify which template engine to use; can be set to 'underscore' (or just '_'), a custom compile function, or an object with a compile method; default is 'ejs'
- render - render the template; requires a data option if true; default is false
- onDelete - a function to be invoked when a file is deleted with a filepath paramater (by default, no action is taken)
- outputPath - specifies the directory path to write the output files to
- outputExtension - specifies the file extension to append to output files; default is '.js' (or '.html' if render option is true)
- prettify - prettify the output; default is true; currently only for javascript output
- sourceTemplate - used for rendering the javascript files, this template will be passed two variables: name and source
#### test
To run tests for Andre, [Mocha](https://github.com/visionmedia/mocha) and [Expect.js](https://github.com/LearnBoost/expect.js) must be installed. If they are not, install them using npm, e.g.
```npm install mocha expect.js -g
To run the tests, clone this repo, cd to your local repo's directory and type
```mocha
#### license
MIT (see LICENSE.txt)
FAQs
a Node.js file-watching template compiler for ejs and underscore templates
The npm package andre receives a total of 5 weekly downloads. As such, andre popularity was classified as not popular.
We found that andre 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.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.