README
Instructions
const root = require("root-path/index")
console.log(root)
This plugin can get the root directory of the project directly
<script type="module">
import rootPathPlugin from 'https://cdn.skypack.dev/root-path-plugin';
</script>
const root = require("root-path/index")
console.log(root)