@skpm/path

A drop-in replacement for the path nodejs module

Usage no npm install needed!

<script type="module">
  import skpmPath from 'https://cdn.skypack.dev/@skpm/path';
</script>

README

path for Sketch

All the nodejs path API is available.

A additional method is available:

  • path.resourcePath(string): which returns the path to a resource in the plugin bundle or undefined if it doesn't exist.