name-from-path

$ npm install --save name-from-path

Usage no npm install needed!

<script type="module">
  import nameFromPath from 'https://cdn.skypack.dev/name-from-path';
</script>

README

name-from-path NPM version Build Status Dependency Status

Installation

$ npm install --save name-from-path

Usage

const nameFromPath = require('name-from-path');

nameFromPath('some-path-to/Rainbow.txt'); // returns Rainbow.text

options

Strip extension

const nameFromPath = require('name-from-path');

nameFromPath('some-path-to/Rainbow.txt', true); // returns Rainbow

License

Apache-2.0 © Glenn Vandeuren