Skip to content

squgeim/bharyang-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bharyang-cli

Sort and group imports in node application. This is a CLI interface for bharyang.

Installation

Install from npm:

npm install -g bharyang-cli

Usage

This CLI is geared towards use from text editor plugins. The import lines are passed to the CLI as stdin stream, and the sorted lines are returned in stdout.

$ echo "
import * as userService from '../../services/user';
import CONST from '../../constans/common';
" | bharyang

The different sorting modes can be provided as arguments:

bharyang --asc
bharyang --desc
bharyang --group

Grouping the imports is the default case.

About

Sort and group imports in node application. This is a CLI interface for https://github.com/pratishshr/bharyang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published