@fotoncompany/sort-object
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

Sort Object

Sort an object's key within source code automatically as part of linting

IMPORTANT: This lib only works with Typescript files for now. Open an issue to support Javascript files then we’ll add support to it.

Install

Install with npm:

npm i @fotoncompany/sort-object

or with yarn:

yarn add @fotoncompany/sort-object

Usage

Use the cli with the --src flag as follows:

sort-object --src ./packages

You can filter which files will be formated through the --regex flag, as shown below. The Regex must be a string that can be parsed.

sort-object --src ./packages --regex '.input.ts'

Readme

Keywords

none

Package Sidebar

Install

npm i @fotoncompany/sort-object

Weekly Downloads

1

Version

0.2.2

License

MIT

Unpacked Size

6.6 kB

Total Files

9

Last publish

Collaborators

  • jgcmarins