Giter Club home page Giter Club logo

easy_cleaner's Introduction

Easy Cleaner

pub package codecov GitHub license

Easy Cleaner is a Dart CLI package designed to remove unused locale keys from JSON files used with the easy_localization package. It helps keep your localization files clean and manageable by identifying and removing keys that are no longer in use.

Features

  • Extracts all keys from the specified abstract class (default is LocaleKeys).
  • Searches for key usage in all Dart files within your project.
  • Identifies unused keys by comparing all extracted keys with the keys found in use.
  • Removes unused keys from your JSON localization files.

Installation

You can globally install easy_cleaner using the Dart package manager:

dart pub global activate easy_cleaner

Command Line Options

You can customize the behavior of easy_cleaner using the following options:

  • --current-path: The current path of the project, default is the current directory.
  • --generated-class-key: The name of the generated class key, default is LocaleKeys.
  • --assets-dir: The directory where the JSON files are located, default is assets/translations.

Example Usage with Options:

easy_cleaner --current-path /path/to/project --generated-class-key MyCustomKeys --assets-dir path/translations-files

Contributing

Contributions are welcome! Please submit issues and pull requests.

  • Fork the repository.
  • Create a new branch:
  • Make your changes.
  • Commit your changes:
  • Push to the branch:
  • Create a new Pull Request

easy_cleaner's People

Contributors

hasankarli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.