
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
extract-i18n
Advanced tools
Based on grep, extract text from project directory
$ npm install --save-dev extract-i18n
or
$ yarn add -D extract-i18n
If you are using a Mac, you need to install grep
brew install grep
example/default.ts
import React from 'react';
export function App() {
const word1 = t('Hello');
const word2 = t(`word`);
const word3 = t('Hello, word');
return (
<div>
{word1}
{word2}
{word3}
</div>
);
}
import { extract } from 'extract-i18n';
const words = extract({
path: 'example', // your folder/file
});
console.log(words);
//output
// ['Hello', 'word', 'Hello, word'];
FAQs
Based on `grep`, extract text from project directory
The npm package extract-i18n receives a total of 278 weekly downloads. As such, extract-i18n popularity was classified as not popular.
We found that extract-i18n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.