v3.0.0 Plans #31
Nixinova
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My current ideas for a future v3.0 of LinguistJS.
If you have some ideas for good changes to this program, comment them below.
1. More streamlined raw content inputting
Perhaps make the input signature the following:
This would keep all the file data in the first argument and options in the second as at the moment when doing raw input you have to put the file names as the first argument and the file content in the second, which isn't very obvious (see #30).
Or: add a separate analyse.raw function?
2. Restructure internals to be raw-input based
The inner code should not treat folder traversal as the default.
I.e., treat the raw input as the default input method and when folder paths are used as input the file contents are grabbed and then from that point on it is treated like raw input.
3. Add count to language results
results.languages[lang].count
4. Move metadata into
repository
key?Don't need to mix { bytes, lines } output with { type, color } metadata. Move results.languages['JavaScript'].type|color into repository['JavaScript'].type|color?
Beta Was this translation helpful? Give feedback.
All reactions