title: How can I add a timestamp into a script in package.json?
body: <p>It may not be possible (because this is JSON not JavaScript). I'm just trying to think of the simplest way to insert a datestamp in a string from an npm command without adding the overhead of another task runner etc:</p>
  
  <pre><code>"scripts": {
      "deploy" : "git add -A; git commit -m \"automated deployment {DateStamp}\"; git push deployment browse --force;"
  },
  </code></pre>
  
  <p>And no need to chide me for using <code>--force</code> ;)</p>