
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
express-session-sqlite
Advanced tools
SQLite-backed session store for express-session written in Typescript
A session store for express-session
using SQLite.
Fully unit tested. PRs welcomed.
$ npm i express-session-sqlite sqlite3 --save
import * as sqlite3 from 'sqlite3'
import * as express from 'express'
import * as session from 'express-session'
import sqliteStoreFactory from 'express-session-sqlite'
const SqliteStore = sqliteStoreFactory(session)
const app = express()
app.use(session({
store: new SqliteStore({
// Database library to use. Any library is fine as long as the API is compatible
// with sqlite3, such as sqlite3-offline
driver: sqlite3.Database,
// for in-memory database
// path: ':memory:'
path: '/tmp/sqlite.db',
// Session TTL in milliseconds
ttl: 1234,
// (optional) Session id prefix. Default is no prefix.
prefix: 'sess:',
// (optional) Adjusts the cleanup timer in milliseconds for deleting expired session rows.
// Default is 5 minutes.
cleanupInterval: 300000
}),
//... don't forget other expres-session options you might need
}))
This module uses debug
under the name express-session-sqlite
. When starting up your app, do the following:
$ DEBUG=express-session-sqlite node app.js
2.1.1 - Fri May 27 2022 11:43:11
Contributor: [Theo Gravity](https://github.com/Theo Gravity)
This is a slight optimization update.
FAQs
SQLite-backed session store for express-session written in Typescript
The npm package express-session-sqlite receives a total of 367 weekly downloads. As such, express-session-sqlite popularity was classified as not popular.
We found that express-session-sqlite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.