How to add_js per content type in my module? I'm looking for a way for my module to evaluate the content type in a preprocess hook and conditionally add some javascript.  

Theme_preprocess_page() makes the content type accessible plus some other useful things (I could differentiate between nodes &amp; views &amp; such), but I can't use it because it is likely to have already been declared by the theme.  

*My_module*_preprocess_page() doesn't appear to provide the content type anywhere.

What is a good option here?
Here's how to add content type specific javascript to a node using hook_node_view and #attached

/**
 * Implements hook_node_view().
 */
function MYMODULE_node_view($node, $view_mode, $langcode) {

  // Add content type specific JS on full page node view
  if($view_mode == 'full'){
    switch($node-&gt;type){
      case 'article':
        $node-&gt;content['#attached']['js'][] = array('data' =&gt; drupal_get_path('theme', 'MYTHEME') .'/js/article.js');
      break;
      case 'page':
        $node-&gt;content['#attached']['js'][] = array('data' =&gt; drupal_get_path('theme', 'MYTHEME') .'/js/page.js');    
      break;
    }
  }

}