title: How do you use date-format variables in a npm package.json scripts?
body: <p>I've created a CucumberJs solution and I'm trying to set a script in my npm package.json that kicks off the testing and also creates a output file.   The trouble I'm having is setting a date into the file.
  I know the following works:</p>
  
  <pre><code>{
    "name": "UI-test-automation",
    "version": "1.1.0",
    "description": "Integration Regression UI Test Automation",
    "main": "autoTest.js",
    "scripts": {
        "start": "node ./node_modules/.bin/cucumber-js --tags @RegressionTestSuite --format json:./results/log.json",
  </code></pre>
  
  <p>This will create a log.json result file in the /results directory.  I want to add a date time to the log file.   I tried using:</p>
  
  <pre><code>{
    "name": "UI-test-automation",
    "version": "1.1.0",
    "description": "Integration Regression UI Test Automation",
    "main": "autoTest.js",
    "scripts": {
        "start": "node ./node_modules/.bin/cucumber-js --tags @RegressionTestSuite --format json:./results/log_`date +\\%Y\\\\%m\\\\%d_%H%M\\`.json",
  </code></pre>
  
  <p>but this isn't working.  Anyone know now I can add a date into the file name so that the log file will have the current date time?</p>
  
  <hr>
  
  <p>Solution</p>
  
  <hr>
  
  <p>I couldn't get the dang slashes to work, so my cop-out was to use dashes:</p>
  
  <pre><code>  "scripts": {
      "start": "node ./node_modules/.bin/cucumber-js --tags @New2 --format json:./results/log__`date +%Y-%m-%m__%H-%M`.json",
  </code></pre>