Before I write my own, I was wondering if there are any good JS libraries for SP that can be used to get data from an SP list given the list and view name.
I know it is something anyone can do themselves but I wanted to simplify it into a generic library so you can make a call like getListItems(listName, viewName)
and get an array of objects for each item in the list.
I like CSOM/JSOM because it gives JavaScript friendly objects of fields (i.e. a Date field yields a Date
object) but having to write all the code every time I need to get items for a view is a PITA.
I was going to write a library where you'd provide the list and view name and it'd return an array of objects for the rows in that view. I figured before I do that I should check if one already exists.
My Google searches yielded nothing so I thought I'd check here too.