special-file-nir-adi-clb

1.0.8 • Public • Published

special-file-nir-adi-clb

Performing operations on a file (counting, replacing, etc).

How To Use

Run 

1. npm i special-file-nir-adi-clb . 

Usage

Here's a brief intro about what a developer must do in order to start developing the project further:

const special = require('special-file-nir-adi-clb');


special.write_new_file('mynewfile1.txt','Hello nir  and  adi !');
special.count_words_in_file('mynewfile1.txt');
special.count_lines_in_file('mynewfile1.txt');
special.replace_words_in_file('mynewfile1.txt','hello','nir');
special.count_common_word('mynewfile1.txt')

API's

Method Type Description
.write_new_file string/file input file name and content (string) and creates a file
.delete_file string/file input file name and deleted a file
.count_words_in_file int input file name returen count words in file
.count_lines_in_file int input file name returen count lines in file
.replace_words_in_file string/file input file name and string returen replace words in file
.count_common_word dictionary input file name returen count common word in file

Package Sidebar

Install

npm i special-file-nir-adi-clb

Weekly Downloads

2

Version

1.0.8

License

ISC

Unpacked Size

3.83 kB

Total Files

3

Last publish

Collaborators

  • nir-alon