Skip to content

Love2Explore/Yargs_module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yargs_module

How to pass argument from command line using Yargs Module.

This example shows how to store/remove/read data into local file using Commamd line.

Downlaod the package. Oen cmd - > Navigate to directory.

  1. For Adding new data in file run below command.

    File_directory> node index.js add --header="Test" --body=" Add new data"

  2. For Removing data run below command.

    File_directory> node index.js remove --header="Test"

  3. For Reading data from command.

    File_directory> node index.js read --header="Test"

    Here add/remove/read are the command line.

About

Basic Knowledge of Yargs Module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published