title: Turning npm package (notion js sdk) into vanilla js to be used in iOS scriptable
body: <p>I recently embarked in a journey of brining together some technologies that I have worked with. That being Node, Notion, and iOS shortcuts.</p>
  <p>With the release of the notion api I wanted to create my own custom shortcuts to fit my own needs.</p>
  <p>I found out that Scriptable on iOS let’s you run JavaScript meaning that if somehow I’m able to get a node module in more of a plain js form (no use of require for example) then I could run it on scriptable hence the journey I have embarked on.</p>
  <p>So far I have discovered browserify and someone <a href="https://talk.automators.fm/t/tips-how-to-use-npm-modules-in-scriptable/5747" rel="nofollow noreferrer">created a way trying to use a browserify as a service</a> website however it seems to be down now.</p>
  <p>I tried running browserify using the standalone flag but it fails to execute because browserify exposes the package inside of global namespace (say for example window) since it’s intended to be run on a browser.</p>
  <p>I would appreciate if someone could offer pointers to be able to transform the notion sdk into something that can be imported into scriptable.</p>