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
Get callee directory
<script type="module">
import getdirname from 'https://cdn.skypack.dev/getdirname';
</script>
Get callee directory
import dirname from 'getdirname';
dirname();
const dirname = require('getdirname');
dirname();
MIT