Transform .properties, .env and other key-value pair dotfile files into TypeScript interfaces
npm install dotfile-typesGenerates TypeScript interfaces from .env, .properties, .ini, and other key-value pair files,
including nested types.
Currently uses json-ts, and could technically work with flow.
Check out /test/fixtures/expected for more example outputs.
CLI simple usage: $ dotfile-types
```
$ dotfile-types l10n.properties interfaces.d.ts
Tranforms this:
`inil10n.properties
Into this:
`ts
// interface.d.tsinterface IRootObject {
universe: IUniverse;
hats: IHats;
}
interface IUniverse {
attribution: IAttribution;
}
interface IAttribution {
wikimediaLink: string;
wikimediaAlt: string;
}
interface IHats {
color: string;
imageAlt: string;
expensive: string;
buyMe: string;
}
``