vamtiger-get-path-data
v0.0.2
Published
Get data for a defined path.
Downloads
240
Readme
VAMTIGER Get Path Data
VAMTIGER Get Path Data returns data associated with a defined path.
Installation
VAMTIGER Get Path Data can be installed using npm or yarn:
npm i vamtiger-get-path-data
or
yarn add vamtiger-get-path-data
Usage
Import or require a referece to VAMTIGER Get Path Data:
import getPathData from 'vamtiger-get-path-data';
or
const getPathData = require('vamtiger-get-path-data').default;
VAMTIGER Get Path Data will return data for deined path:
getPathData('some/file/absolute/path')
.then(handleResult)
.catch(handleError);
Since VAMTIGER Get Path Data returns a Promise, it can be more conveniently executed within an async function:
async someAsyncFunction function() {
const pathData = await getPathData('some/file/absolute/path');
}