node-ts-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Node-TypeScript Utils

An object containing two useful functions for working with files in NodeJS

Usage

npm install node-ts-utils

Use as any other module:

import { readFile, writeFile } from 'node-ts-utils';

// Eg. print data from json file
const dataPath = './data/test.json';
readFile(
  (data) => {
    console.log(data);
  },
  false,
  dataPath,
);

Readme

Keywords

Package Sidebar

Install

npm i node-ts-utils

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

2.58 kB

Total Files

4

Last publish

Collaborators

  • guyroberts21