Skip to content

vamtiger-project/vamtiger-get-file-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VAMTIGER Get Path Data

VAMTIGER Get File Text returns text for a defined file path.

Installation

VAMTIGER Get File Text can be installed using npm or yarn:

npm i vamtiger-get-file-text 

or

yarn add vamtiger-get-file-text

Usage

Import or require a referece to VAMTIGER Get File Text:

import getFileText from 'vamtiger-get-file-text';

or

const getFileText = require('vamtiger-get-file-text').default;

VAMTIGER Get File Text will return text for defined file path.:

const fileText = getFileText('some/file/absolute/path')
    .then(handleResult)
    .catch(handleError);

Since VAMTIGER Get File Text returns a Promise, it can be more conveniently executed within an async function:

async someAsyncFunction function() {
    const fileText = await getFileText('some/file/absolute/path');
}

About

Get text data for a defined file path.

Resources

License

Stars

Watchers

Forks

Packages

No packages published