title: set toastr options globally using javascript
body: <p>I have a set of scripts that all use toastr. They look a bit like this:</p>
  
  <pre><code>import $ from 'jquery';
  import toastr from 'toastr';
  import list from './data/address';
  import { selectedApp, validate, getCookie, setCookie } from './common';
  
  $(document).ready(function () {
      toastr.options = {
          'closeButton': true,
          'debug': true,
          'newestOnTop': false,
          'progressBar': true,
          'positionClass': 'toast-top-full-width',
          'preventDuplicates': false,
          'onclick': null,
          'showDuration': '6000',
          'hideDuration': '1000',
          'timeOut': '50000',
          'extendedTimeOut': '1000',
          'showEasing': 'swing',
          'hideEasing': 'linear',
          'showMethod': 'fadeIn',
          'hideMethod': 'fadeOut'
      };
  
      // ---  Application code --- //
  });
  </code></pre>
  
  <p>I have a few scripts and they all have the <code>toastr.options</code> declared at the top. Is there a way (perhaps using an import) that will allow me to set the <strong>toastr</strong> options globally?</p>