
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@allthings/react-intl-extract-messages
Advanced tools
Extracts all `react-intl` related messages in typescript based projects.
Extracts all react-intl
related messages in typescript based projects.
yarn add @allthings/react-intl-extract-messages
Returns an array of messages gathered by @allthings/babel-plugin-react-intl
.
Type: string
Can be absolute or relative path to the tsconfig file, all information how to build the project is taken from there.
Type: object
An object of options which is handed over to @allthings/babel-plugin-react-intl
import { extractMessages } from '@allthings/react-intl-extract-messages'
const messages = extractMessages('../tsconfig.json', {
// options passed to @allthings/babel-plugin-react-intl
})
console.log(messages)
// [
// {
// id: 'authorized-clients-list.revoke',
// description: 'Revoke',
// defaultMessage: 'Revoke',
// },
// {
// id: 'authorized-clients-list.terms-of-use',
// description: 'Terms of use',
// defaultMessage: 'Terms of use',
// },
// // ...
// ]
react-intl-extract-messages --tsconfig tsconfig.json --out messages.json --options-file opts.json
If --out
is omitted, the output will be written to stdout.
Basically it uses typescript to compile all the files to JS and then uses @allthings/babel-plugin-react-intl
to extract the messages.
Run tests with yarn test
.
This will extract messages from a fixture project and check it against a snapshot.
FAQs
Extracts all `react-intl` related messages in typescript based projects.
The npm package @allthings/react-intl-extract-messages receives a total of 0 weekly downloads. As such, @allthings/react-intl-extract-messages popularity was classified as not popular.
We found that @allthings/react-intl-extract-messages demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.