# order-imports

This node script orders the imports of your ES6 Javascript files.

Example invocation:

```
node order-imports src -c exampleConfig.json
```

Example config:

```
{
  "files": ".*.js",
  "order": [
    {
      "regex": "react"
    },
    {
      "regex": "react-native"
    },
    {
      "regex": "react-redux"
    },
    {
      "regex": "styled-components"
    },
    {
      "regex": "^[^\\.@]"
    },
    {
      "regex": "^@"
    }
  ]
}
```
