vamtiger-get-file-text
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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');
}

Readme

Keywords

Package Sidebar

Install

npm i vamtiger-get-file-text

Weekly Downloads

6

Version

0.0.6

License

MIT

Unpacked Size

7.38 kB

Total Files

14

Last publish

Collaborators

  • vamtiger-project