Socket
Socket
Sign inDemoInstall

djs-collection-persistent

Package Overview
Dependencies
84
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    djs-collection-persistent

Collections stored in persistent database.


Version published
Weekly downloads
341
decreased by-0.87%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Discord.js Collections made Persistent

THIS REPOSITORY IS NOW OBSOLETE AND WILL NO LONGER BE UPDATED

Moving to Enmap

djs-collection-persistent and djs-collection have been merged into a more efficient system that's been renamed Enmap.

To get enmap, see The NPMJS Page.

Updating requires no migration, only a change in code:

// OLD CODE

const PersistentCollection = require("djs-collection-persistent");
const myCollection = new PersistentCollection({name: 'myCollection'});

// NEW CODE

const Enmap = require('enmap');
const EnmapLevel = require('enmap-level');
const myCollection = new Enmap({ provider: new EnmapLevel({ name: 'myCollection' }); });

Note that persistence requires a Provider. If you're using djs-collection-persistent you'll need to install both enmap and enmap-level to migrate. No data will be lost.

Support

For support join 〈evie.codes〉 and talk to me, 〈evie.codes〉!

Keywords

FAQs

Last updated on 02 Nov 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc