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

@allthings/react-intl-extract-messages

Package Overview
Dependencies
Maintainers
8
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@allthings/react-intl-extract-messages

Extracts all `react-intl` related messages in typescript based projects.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
318
increased by96.3%
Maintainers
8
Weekly downloads
 
Created
Source

react-intl-extract-messages

Extracts all react-intl related messages in typescript based projects.

Install

yarn add @allthings/react-intl-extract-messages

Usage

This package provides a binary:

react-intl-extract-messages --tsconfig tsconfig.json --out messages.json

If --out is omitted, the output will be written to stdout.


Produces something like:

[
  {
    "id": "authorized-clients-list.revoke",
    "description": "Revoke",
    "defaultMessage": "Revoke"
  },
  {
    "id": "authorized-clients-list.terms-of-use",
    "description": "Terms of use",
    "defaultMessage": "Terms of use"
  },
  // ...  
]

How

Bascially it uses typescript to compile all the files to JS and then uses babel-plugin-react-intl to extract the messages.

@todo

Tests

FAQs

Package last updated on 15 Nov 2018

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