Make a Large SharePoint List Easily

Ever need to test something against a large list but don't have one handy. Well I did today, so I wanted to share what I came up with using sp-pnp-js. Nothing too complicated - using batching, getting the list item type name once, and asynchronous recursion.

 

 

This could be tweaked to add more fields. Let me know if you see other ways to speed things up. Hope this helps you when you need to create a large SharePoint list for testing easily.