require-js-sort

Sorts required and imported js libs by path

azlato

271

0

0.1.5

MIT

GitHub

require-js-sort package for Atom editor

Simple Atom tool for sorting your "require" and "import x from" by file path.

Example: This ...

import {buy} from "app/js/zoo-manager.js";
import Cage from "app/js/cage.js";
import Animal from "app/js/animal.js";

... will be converted to ...

import Animal from "app/js/animal.js";
import Cage from "app/js/cage.js";
import {buy} from "app/js/zoo-manager.js";

GIF example