title: Using Node module with out type defination in Angular 2
body: <p>I have  written a very simple node module [ npm install twinconsole ] and published to npm.</p>
  
  <p>I also included browser <a href="https://npmcdn.com/twinconsole@1.2.1/dist/index.umd.min.js" rel="nofollow noreferrer">build</a> ( umd module ) so that it can be 
  used from browser as well.</p>
  
  <p>Below is node module related code</p>
  
  <pre><code>module.exports.print = msg =&gt; {
  console.log(msg);
  }
  </code></pre>
  
  <p>Now I would like to use this node module from my Angular 2 typescript application, to do that </p>
  
  <ol>
  <li><p>I have included below CDN file in index.html.</p>
  
  <p>&lt; script src="https://npmcdn.com/twinconsole@1.2.1/dist/index.umd.min.js"> </p></li>
  </ol>
  
  <p>What is that I need to do so that print() function exported in node module can be used in below root component</p>
  
  <pre><code>import { Component } from '@angular/core';
  
  declare var twinconsole: any;  // ADDEED THIS LINE , IS THIS CORRECT ?
  
  
  @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css']
  })
  export class AppComponent {
  
    title = 'app works!';
  }
  </code></pre>