Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
coffee4clients
Advanced tools
Extends Express.js such that when a .coffee file is accessed through an express server the response is the compiled javascript instead of the source coffeescript
Coffee4Clients allows Express.js to render .coffee
files when ?js
is appended to their urls.
http://localhost:5000/asd.coffee
alert 'asd'
http://localhost:5000/asd.coffee?js
(function() {
alert("awesome");
}).call(this);
Install it
npm install coffee4clients
With Node.js in JavaScript
// Include Coffee4Clients
require('coffee-script');
coffee4clients = require('coffee4clients');
// Setup with your Express Server
coffee4clients.createInstance({
server: null, // your express server (required)
publicPath: '...', // the full path to your server root (required)
missingAction: false, // the action to forward to when a file is not found
cache: false // whether the responses should be cached
});
With Node.js in CoffeeScript
# Include Coffee4Clients
coffee4clients = require 'coffee4clients'
# Setup with your Express Server
coffee4clients.createInstance {
server: null # your express server (required)
publicPath: '...' # the full path to your server root (required)
missingAction: false # the action to forward to when a file is not found
cache: false # whether the responses should be cached
}
v0.2 June 29, 2011
?js
to be appended to .coffee
urlsv0.1 May 18, 2011
Licensed under the MIT License Copyright 2011 Benjamin Arthur Lupton
FAQs
Extends Express.js such that when a .coffee file is accessed through an express server the response is the compiled javascript instead of the source coffeescript
We found that coffee4clients 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.