vamtiger-get-root-path
v0.0.2
Published
Get a root path for a defined array of paths.
Downloads
2
Readme
VAMTIGER Get Root Path
VAMTIGER VAMTIGER Get Root Path will return a a root path for a defined array of paths.
Installation
VAMTIGER VAMTIGER Get Root Path can be installed using npm or yarn:
npm i --save vamtiger-get-root-path
or
yarn add vamtiger-get-root-path
Usage
Import or require a referece to VAMTIGER VAMTIGER Get Root Path:
import getRootPath from 'vamtiger-get-root-path';
or
const getRootPath = require('vamtiger-get-root-path').default;
VAMTIGER VAMTIGER Get Root Path will return a a root path for a defined array of paths.
const getRootPath = require('vamtiger-get-root-path').default
const paths = [
'some/root/path/file.ext',
'not/some/root/path/file.ext'
];
const rootPath = getRootPath({ html })
// 'some/root/path/file.ext'