Skip to content

itszero/module-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

module-sort

npm version Dependency Status

An ECMAScript 6 syntax aware import sorter.

Installation

You can install module-sort using npm:

npm install -g module-sort

Usage

The CLI tool takes one file and print the import-sorted file on STDOUT:

module-sort test.js

You can also use this package as an library:

import ImportSorter from './import-sorter';
new ImportSorter(content).sort(); // return code with sorted imports

About

Sorts your ES6 imports

Resources

License

Stars

Watchers

Forks

Packages

No packages published