0.1.9 • Published 4 years ago
module-version-switcher v0.1.9
Module Version Switcher
Example
discord.js dev
const mvs = require('module-version-switcher');
const Discord = mvs('discord.js').require('dev');
discord.js v12.5.3
const mvs = require('module-version-switcher');
const Discord = mvs('discord.js').require('12.5.3');
node-fetch cjs
const mvs = require('module-version-switcher');
const fetch = mvs('node-fetch').require('cjs');
node-fetch latest(ES Module)
import mvs from 'module-version-switcher';
const { default: fetch } = await mvs('node-fetch').import('latest');