@naxmefy/basename

a simple micro lib to return the base name of given path...

Usage no npm install needed!

<script type="module">
  import naxmefyBasename from 'https://cdn.skypack.dev/@naxmefy/basename';
</script>

README

@naxmefy/basename

a simple micro lib to return the base name of given path...

If you see the code - you may understand why there shouldn't be a lib like this

installation

$ npm i @naxmefy/basename

usage

const basename = require('@naxmefy/basename')
basename('C:\\users\\rofl\\example.jpeg') // will return --> example