title: Access a Cordova Plugin Variable in the Script of a Plugin
body: <p>I'm making a Cordova plugin and I'd like to be able to have a <code>--variable VARIABLE="someValue"</code> in the plugin installation.</p>
  
  <p>I have an after_prepare script within my <code>plugin.xml</code>.</p>
  
  <p>plugin.xml</p>
  
  <p><code>&lt;preference name="VARIABLE" default="defaultValue" /&gt;</code></p>
  
  <p><code>&lt;hook src="script.js" type="after_prepare" /&gt;</code></p>
  
  <p>Usage of plugin would look like this:</p>
  
  <p><code>cordova plugin add pluginsource.git --fetch --variable VARIABLE="customvalue"</code></p>
  
  <p>Inside the script.js, how can I reference the value of that variable (so I see "customvalue") if the user chose to use that variable when installing?</p>