Prank developers with fake source maps!
Get it straight from NPM:
npm i fake-source-map
Build it yourself:
git clone https://github.com/altwine/fake-source-map.git
cd fake-source-map
npm install
npm run format
npm run test
npm run build
import { FakeSourceMapGenerator } from 'fake-source-map';
import path from 'node:path';
const file = './my-real-code.js';
const fakeCode = '\n (its over...)\n (-_-)\n';
const filename = path.basename(file);
const fsmg = new FakeSourceMapGenerator({ filename });
fsmg.fromFile(file, fakeCode);
fsmg.appendToFile(file);
MIT. Check LICENSE file.