Gathering detailed insights and metrics for tiny-database
Gathering detailed insights and metrics for tiny-database
Gathering detailed insights and metrics for tiny-database
Gathering detailed insights and metrics for tiny-database
Enhanced Map structure with additional utility methods.
npm install tiny-database
Typescript
Module System
Node Version
NPM Version
JavaScript (99.7%)
TypeScript (0.3%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
176 Stars
437 Commits
31 Forks
4 Watchers
7 Branches
22 Contributors
Updated on Jun 01, 2025
Latest Version
5.3.3
Package Id
tiny-database@5.3.3
Unpacked Size
56.69 MB
Size
16.93 MB
File Count
219
NPM Version
6.13.4
Node Version
10.18.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Simplified Database - Tiny Database
Tiny-Database Works Best With Node 10
$ npm install tiny-database
$ yarn add tiny-database
$ pnpm install tiny-database
Basic Usage:
1const Database = require('tiny-database'); 2 3const database = new Database({ 4 name: 'tiny-database', 5 autoFetch: true, 6 fetchAll: false 7}); 8 9database.set('hello', 'world'); 10 11console.log(database.get('hello')); 12//=> world
Usage With JSON:
1const Database = require('tiny-database'); 2 3const database = new Database({ 4 name: 'tiny-database', 5 autoFetch: true, 6 fetchAll: false 7}); 8 9database.set('User 193729481083', { 10 Password: 'Xz5g7[86]5!v/', 11 Username: 'The King', 12 Messages: 1932, 13 Stars: 530, 14 XP: 3942, 15 Rank: 'Elite' 16}); 17 18console.log(database.get('User 193729481083')); 19//=> { 20//====> Password: 'Xz5g7[86]5!v/', 21//====> Username: 'The King', 22//====> Messages: 1932, 23//====> Stars: 530, 24//====> XP: 3942, 25//====> Rank: 'Elite' 26//=> }
Editing JSON
1const Database = require('tiny-database'); 2 3const database = new Database({ 4 name: 'tiny-database', 5 autoFetch: true, 6 fetchAll: false 7}); 8 9database.set('User 193729481083', { 10 Password: 'Xz5g7[86]5!v/', 11 Username: 'The King', 12 Messages: 1932, 13 Stars: 530, 14 XP: 3942, 15 Rank: 'Elite' 16}); 17 18console.log(database.get('User 193729481083')); 19//=> { 20//====> Password: 'Xz5g7[86]5!v/', 21//====> Username: 'The King', 22//====> Messages: 1932, 23//====> Stars: 530, 24//====> XP: 3942, 25//====> Rank: 'Elite' 26//=> } 27 28// Edit User 193729481083's XP 29database.set('User 193729481083', 4278, 'XP'); 30 31console.log(database.get('User 193729481083')); 32//=> { 33//====> Password: 'Xz5g7[86]5!v/', 34//====> Username: 'The King', 35//====> Messages: 1932, 36//====> Stars: 530, 37//====> XP: 4278, 38//====> Rank: 'Elite' 39//=> }
Usage With Arrays:
1const Database = require('tiny-database'); 2 3const database = new Database({ 4 name: 'tiny-database', 5 autoFetch: true, 6 fetchAll: false 7}); 8 9database.set('Items For Sale', ['Shotgun', 'X-Crystals', 'MX564 Anti-Armor Rifle']); 10 11console.log(database.get('Items For Sale')); 12//=> ['Shotgun', 'X-Crystals', 'MX564 Anti-Armor Rifle']
**Usage With Multiple Files:
moduleHUB.js:
1const Database = require('tiny-database');
2
3module.exports = new Database({
4 name: 'tiny-database',
5 autoFetch: true,
6 fetchAll: false
7});
Then Require The Database In Another File:
1const database = require('moduleHUB.js'); 2 3database.set('hello', 'world'); 4 5//===> Do Whatever You Want...
Authors: SliceWire, Evelyne Lachance
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/30 approved changesets -- score normalized to 2
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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