club-imports

1.1.2 • Public • Published

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
*/

Readme

Keywords

none

Package Sidebar

Install

npm i club-imports

Weekly Downloads

0

Version

1.1.2

License

ISC

Unpacked Size

26.1 kB

Total Files

27

Last publish

Collaborators

  • tech4gt