Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. /**
  2. * themeFinder.find
  3. *
  4. * config {object}
  5. *
  6. * all {boolean} default=false: if set to true themeFinder will look for both themelets and themes (this functionality does not currently exist)
  7. * global {boolean} default=false: if set to true themeFinder will find modules installed globally on your machine
  8. * keyword {string} default='liferay-theme': keyword used for searching npm registry
  9. * searchTerms {string} default=null: additional search terms for filtering results
  10. * themelet {boolean} defualt=false: if set to true themeFinder will return themelet modules instead of theme. Has no affect if `all` is set to true
  11. *
  12. * cb {function}: receives two arguments
  13. *
  14. * err: if everything was successful it will be null
  15. * results: array of package.json objects
  16. */
  17.  
  18. themeFinder.find(config, function(err, results) {
  19.  
  20. });
  21.  
  22. /**
  23. * themeFinder.name
  24. *
  25. * name {string} default=null: name of npm module
  26. * cb {function}: receives two arguments
  27. *
  28. * err: if everything was successful it will be null
  29. * result: package.json file npm module
  30. */
  31.  
  32. themeFinder.name(name, function(err, result) {
  33.  
  34. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement