Use Mocha and the package script commands to quickly start unit testing CommonJS code.
    
  
    
   
  
    
    
    
  
    
      
  
      
  
    
    
      Convert an asynchronous operation to promise-returning one.
    
  
    
   
  
    
    
    
  
    
      
  
      
  
    
    
      Leave executable examples inside source files for future reference.
    
  
    
   
  
    
    
    
  
    
      
  
      
  
    
    
      How to store multiple values in a promise chain using an object.