@w3cub/isrequire

detect file path is require-able

Usage no npm install needed!

<script type="module">
  import w3cubIsrequire from 'https://cdn.skypack.dev/@w3cub/isrequire';
</script>

README

isRequire

detect file path is require-able

npm version npm

Setup

npm i @w3cub/isrequire --save

Usage


isRequire(path.resolve(__dirname, './fixture/test'))

License

Copyright (c) Terry Cai. Licensed under the MIT license.