Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

djs-collection-persistent

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

djs-collection-persistent

Collections stored in persistent database.

  • 0.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 02 Nov 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc