1.0.0 • Published 3 years ago

special-file-clb-demo v1.0.0

Weekly downloads
4
License
ISC
Repository
-
Last release
3 years ago

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


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

API's

MethodTypeDescription
.write_new_filestring/fileinput file name and content (string) and creates a file
.delete_filestring/fileinput file name and deleted a file
.count_words_in_fileintinput file name returen count words in file
.count_lines_in_fileintinput file name returen count lines in file
.replace_words_in_filestring/fileinput file name and string returen replace words in file
.count_common_worddictionaryinput file name returen count common word in file
1.0.0

3 years ago