Prank developers with fake source maps!
Get it straight from NPM:
npm i fake-source-mapBuild 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 buildimport { 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.