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.
##About##
Icecream is a rapid web framework based on NodeJS. It was designed with a very small footprint for those who need a simple, elegant and pragmatic toolkit to build high-performing, full-featured web applications.
the source code is hosted on github.com and licensed under the MIT license.
any question about icecream, please feel free to contact zhengzhiyu@yeah.net
##How to use##
####install nodejs####
####create your application####
open a shell prompt and type the following command
mkdir myApp
cd myApp
create application folders
mkdir app
mkdir app/controllers
mkdir app/views
mkdir app/views/layout
mkdir app/views/page
####add icecream to the application####
add icecream module to your working directory
cd myApp/app
npm install icecream
####add files to the application####
create the main file start.js in directory 'myApp/'
var icecream = require('icecream');
icecream.createServer({
appDir:__dirname +'/app'
});
icecream.listen(3000);
create controller file page.js in directory 'myApp/app/controllers/'.
action('index', function(){
var data = {
name: 'icecream',
introduction: 'Icecream is a rapid web framework based on NodeJS. It was designed with a very small footprint for those who need a simple, elegant and pragmatic toolkit to build high-performing, full-featured web applications.'
}
render('index', data);
})
create layout file layout.ejs in directory 'myApp/app/views/layout/'.
<html>
<head>
<meta http-equiv="Content-Type",content="text/html; charset=utf-8">
<title>welcome to icecream!</title>
</head>
<body>
<div class="main">
<%-body%>
</div>
</body>
</html>
Note: icecream uses ejs as the default template engine, so 'ejs' is the default file name extention for views.
create view file index.ejs in directory 'myApp/app/views/page/'.
<h2><%=name%></h2>
<div><%=introduction%></div>
####run the application####
open a shell prompt and change directory to your applicaton
cd /path to your application (myApp)
node start.js
open http://localhost:3000 in browser
FAQs
rapid web framework for nodejs
The npm package icecream receives a total of 77 weekly downloads. As such, icecream popularity was classified as not popular.
We found that icecream 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’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.