Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
JavaScripts your Embedded CoffeeScript Templates
Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-eco
Then add this line to your project's grunt.js
gruntfile:
grunt.loadNpmTasks('grunt-eco');
You'll need to install grunt-eco
first:
npm install grunt-eco
Then modify your grunt.js
file by adding the following line:
grunt.loadNpmTasks('grunt-eco');
Then add some configuration for the plugin like so:
grunt.initConfig({
...
eco: {
app: {
src: ['path/to/eco/files/*.eco'],
dest: 'where/you/want/your/js/files'
}
},
...
});
Then just run grunt eco
and enjoy!
If you have dest
path and want to preserve the directory structure of your eco files, pass the preserve_dirs
option.
options: {
preserve_dirs: true
}
Also, if you just want to preserve the directory structure, starting from a base path, pass the base_path
option.
options: {
preserve_dirs: true,
base_path: 'path/to'
}
This will create the files under where/you/want/your/js/files/eco/files/
.
This grunt plugin is based on and heavily inspired by grunt-coffee. Thanks @avalade
Copyright (c) 2012 Gregor Martynus Licensed under the MIT license.
FAQs
Compiles embedded CoffeeScript templates
The npm package grunt-eco receives a total of 1 weekly downloads. As such, grunt-eco popularity was classified as not popular.
We found that grunt-eco 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.