title: Can I run a command from package.json bin script?
body: <p>Is it possible to run a command from a <code>bin</code> script in a <code>package.json</code> ? I know it expects a path to file and trying to run a command there results in an error upon installation (after publishing to npm). Is it possible to run a command like it is in an <code>npm start</code> ?</p>
  
  <p>Examples:</p>
  
  <pre><code>{
    "name": "myscript",
    "version": "1.0.3",
    "bin": {
      "myscript": "app/main.js"
    }
  }
  </code></pre>
  
  <p>This will create a symlink from the <code>app/main.js</code> script to <code>/usr/local/bin/myscript</code><br>
  Instead, this is what I want to achieve:</p>
  
  <pre><code>{
    "name": "myscript",
    "version": "1.0.3",
    "bin": {
      "myscript": "echo hello world"
    }
  }
  </code></pre>
  
  <p>Possible workarounds are also appreciated.</p>