newBlob.lua 510 B

123456789101112131415161718192021222324252627
  1. return {
  2. tag = 'filesystem-files',
  3. summary = 'Create a new Blob from a file.',
  4. description = 'Creates a new Blob that contains the contents of a file.',
  5. arguments = {
  6. filename = {
  7. type = 'string',
  8. description = 'The file to load.'
  9. }
  10. },
  11. returns = {
  12. blob = {
  13. type = 'Blob',
  14. description = 'The new Blob.'
  15. }
  16. },
  17. variants = {
  18. {
  19. arguments = { 'filename' },
  20. returns = { 'blob' }
  21. }
  22. },
  23. related = {
  24. 'lovr.data.newBlob',
  25. 'Blob'
  26. }
  27. }