getdirname

Get callee directory

Usage no npm install needed!

<script type="module">
  import getdirname from 'https://cdn.skypack.dev/getdirname';
</script>

README

getdirname

Get callee directory

Features

  • Zero dependency
  • Fast
  • Exact callee directory
  • Both CJS and ESM support

Usage

ESM

import dirname from 'getdirname';

dirname();

CJS

const dirname = require('getdirname');

dirname();

License

MIT