Gathering detailed insights and metrics for koa-sqlite3-session
Gathering detailed insights and metrics for koa-sqlite3-session
Gathering detailed insights and metrics for koa-sqlite3-session
Gathering detailed insights and metrics for koa-sqlite3-session
npm install koa-sqlite3-session
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
9 Stars
66 Commits
1 Forks
3 Watching
2 Branches
2 Contributors
Updated on 27 Aug 2023
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
50%
12
Compared to previous day
Last week
13.6%
50
Compared to previous week
Last month
2.2%
185
Compared to previous month
Last year
-50.1%
2,206
Compared to previous year
1
6
koa-sqlite3-session
works with koa-generic-session (a generic session middleware for koa).
1const SQLite3Store = require('koa-sqlite3-session'); 2 3app.use(session({ 4 store: new SQLite3Store('filename.db', { 5 // Options specified here 6 }) 7})); 8
see example
verbose
: Enables node-sqlite3's verbose modettl
: Default cookie expire time, in millisecondsinterval
: Interval for flushing expired sessionsInitialize the SQLite3 connection with the given path and optionally provided options (see above). filename
param can be :memory:
to use in-memory database. The variable session below references this. Should always use as a constructor.
Promise that gets a session by id. Returns parsed JSON if exists, otherwise null
.
Promise that sets a JSON session by id.
Promise that ends a session by id.
Promise that closes database connection.
Promise that removes all expired session data.
(The MIT License)
Copyright (c) 2016 CodeColorist and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
9 existing vulnerabilities detected
Details
Reason
Found 0/12 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More