title: How to prepend text to a file as an npm script command
body: <p>I'm writing a bookmarklet. I need to prepend <code>"javascript:"</code> to the compiled, minified JavaScript. I'm looking for a way to accomplish this using an NPM <code>package.json</code> script.</p>
  
  <pre><code>{ 
      "scripts": {
          "oar:transpile-typescript": "tsc --target es6  --lib dom,es6 ./OarBookmarklet/Oar.ts",
          "oar:minify-javascript": "jsmin -o ./OarBookmarklet/oar.min.js ./OarBookmarklet/oar.js",
          "oar:prepend-javascript": "[??? prepend `javascript:` to minified JavaScript ???]",
          "oar": "run-s oar:transpile-typescript oar:minify-javascript oar:prepend-javascript",
          "build": "run-s oar"
      }
  }
  </code></pre>