original_docstring: 
          Run JavaScript code, either directly or on a file.
  
          Args:
              data(str): File or piece of code (does not support multi-liners)
              js_string(str): Type of JS. By default, is set to string
          
docstring: Run JavaScript code, either directly or on a file.
docstring_tokens: Run JavaScript code either directly or on a file .
code: def runJS(self, data, js_string='string'):
          """
          Run JavaScript code, either directly or on a file.
  
          Args:
              data(str): File or piece of code (does not support multi-liners)
              js_string(str): Type of JS. By default, is set to string
          """
          # I thought a better way was to directly integrate the JsPy module
          # So people wouldn't have to install external libraries
          output_string = ""
  
          if jstype == "string":
              with open("test.js", "w") as text_file:
                  text_file.write(data)
                  cmd = ['node', 'test.js']
  
          if jstype == 'file':
              cmd = ['node', data]
  
          if not jstype == 'string' and not jstype == 'file':
              raise ValueError("The jstype must be either 'string' or 'file'!")
  
          with tempfile.TemporaryFile() as tempf:
              proc = subprocess.Popen(cmd, stdout=tempf)
              proc.wait()
              tempf.seek(0)
              output_string += tempf.read().decode('utf-8')
          
          if jstype == "string": 
              os.remove('test.js')
code_tokens: def runJS ( self , data , js_string = 'string' ) : output_string = "" if jstype == "string" : with open ( "test.js" , "w" ) as text_file : text_file . write ( data ) cmd = [ 'node' , 'test.js' ] if jstype == 'file' : cmd = [ 'node' , data ] if not jstype == 'string' and not jstype == 'file' : raise ValueError ( "The jstype must be either 'string' or 'file'!" ) with tempfile . TemporaryFile ( ) as tempf : proc = subprocess . Popen ( cmd , stdout = tempf ) proc . wait ( ) tempf . seek ( 0 ) output_string += tempf . read ( ) . decode ( 'utf-8' ) if jstype == "string" : os . remove ( 'test.js' )
short_docstring: Run JavaScript code, either directly or on a file.
short_docstring_tokens: Run JavaScript code either directly or on a file .
comment: """
          Run JavaScript code, either directly or on a file.
  
          Args:
              data(str): File or piece of code (does not support multi-liners)
              js_string(str): Type of JS. By default, is set to string
          """$SEP$# I thought a better way was to directly integrate the JsPy module
  $SEP$# So people wouldn't have to install external libraries
  