mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-06 04:32:40 +00:00
12 lines
251 B
JavaScript
12 lines
251 B
JavaScript
const fs = require('fs')
|
|
|
|
const path = "play-dl/index.ts"
|
|
|
|
if(!fs.existsSync(path)) {
|
|
console.log('File Missing')
|
|
process.exit(1)
|
|
}
|
|
|
|
const oldData = fs.readFileSync(path, 'utf-8')
|
|
|
|
fs.writeFileSync(path, oldData.split('// Export Default ')[0]) |