New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-intl-detect-unused

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-intl-detect-unused

Finds react-intl translations which are unused in the current project.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
62
increased by16.98%
Maintainers
1
Weekly downloads
 
Created
Source

npm version

react-intl-detect-unused

Detects unused react-intl translation keys. Parses react-intl message definitions file and searches source files to find out which messages are unused.

Usage

react-intl-unused [-m=ARG] [-s=ARG] [-i=ARG] [-e=ARG] [-h]

OptionDescriptionDefault value
-m or --msg=ARGFile with message definitions./src/Messages.js
-s or --src=ARGProject source folder./src
-i or --include=ARGWhich source files should be included in search*.{js,ts}
-e or --exclude=ARGWhich source files should be excluded from search *.test.js
-h or --helpDisplay this help

Example usage

react-intl-unused -m=./intl/Messages.js -s=./src -i=*.js -e=./util

Restrictions

The script requires grep command to be available.

Keywords

FAQs

Package last updated on 07 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc