linguist_lang_info 0.0.2 copy "linguist_lang_info: ^0.0.2" to clipboard
linguist_lang_info: ^0.0.2 copied to clipboard

A collection of language and content type information tracked by the linguist project.

example/linguist_lang_info.dart

import 'package:linguist_lang_info/linguist_lang_info.dart';

void main() {
  const targetExtension = '.dart';

  final languagesWithExtension =
      allLanguages.where((lang) => lang.extensions.contains(targetExtension));

  for (final lang in languagesWithExtension) {
    print('The ${lang.name} language uses the `$targetExtension` extension!');
    if (targetExtension != lang.primaryExtension) {
      print('It is however, not its primary extension.');
    }
  }
}
1
likes
160
pub points
0%
popularity

Publisher

verified publisherdartcommunity.dev

A collection of language and content type information tracked by the linguist project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on linguist_lang_info