Skip to content

tech4GT/clubImports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Club Typescript imports

This is a command line utility for clubbing typescript imports in your files.

Installation

npm i -g club-imports

Usage (CLI)

club-imports [Options]

Options:
  -s, --sort         sort the import lines
  -g, --group        group npm and local imports separately
  -f, --file <path>  Path to your typescript file
  -h, --help         display help for command
// myfile.ts
import { mySuperInterface } from 'something'
import { myOtherSuperInterface } from 'something'


/*
* My super duper typescript code
*/
// myfile.ts after processing
import { mySuperInterface, myOtherSuperInterface } from 'something';


/*
* My super duper typescript code
*/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published