dart_secrets_scanner 2.0.0
dart_secrets_scanner: ^2.0.0 copied to clipboard
command-line tool designed to scan Dart and related files in Flutter projects for hardcoded sensitive information such as API keys, tokens, passwords, and other credentials.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate dart_secrets_scannerUse it
The package has the following executables:
$ dart_secrets_scanner
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dart_secrets_scannerWith Flutter:
$ flutter pub add dart_secrets_scannerThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
dart_secrets_scanner: ^2.0.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dart_secrets_scanner/dart_secrets_scanner.dart';