Advertisement
Guest User

softwares()

a guest
Dec 17th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #softwares()
  2. softwares(["name_or_snippet", "only_installed"])
  3. - name_or_snippet: By default it is assigned as “*”, that means all softwares.
  4. - only_installed (bool): By default it is assigned as false. It make the function to bring just installed softwares.
  5. This function returns an object that contains the list of the softwares.
  6.  
  7. ##Attributes and methods
  8. - list: It contains an array with all softwares found.
  9. - has(“name_or_snippet”): Function returns true or false. It checks if there is an specific software among the list.
  10. - has_installed(“name_or_snippet”): Exactly as the name suggests ;)
  11.  
  12. ###Examples:
  13.  
  14. console.log(softwares(".crc").list)
  15.  
  16. if(target.softwares().has_installed("*.av")){
  17. window.alert("I ain't going to install anything here")
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement