web-midi-player
Version:
🎹 Event-driven JavaScript library that enables MIDI playback in the browser.
10 lines (7 loc) • 310 B
JavaScript
const fs = require('fs');
const { join } = require('path');
// Get the package obejct and change the name
const pkg = require('../package.json');
pkg.name = '@yvesgurcan/web-midi-player';
// Update package.json with the udpated name
fs.writeFileSync(join(__dirname, '../package.json'), JSON.stringify(pkg));