
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
rawtext2json
Advanced tools
a CLI utility converts raw text files (text, html etc.) to valid JSON files for importing in React Native projects
a CLI utility converts raw text files (text, html etc.) to valid JSON files for importing in React Native projects
Sometimes, we do need include raw text files (e.g. EULA or Terms of Use) in our apps. It will be nice if we can simply:
import license_content from 'license.txt';
Unfornately, the built-in packager of React Native doesn't support custom loader like webpack. The only way we can acheive that is to convert the raw text file to a valid JSON and import the JSON file in your React Native project (the built-in packager does support JSON file loader).
You can convert your raw text files to valid JSON files using this command line utility and import the JSON:
import license_content from 'license.txt.json';
$ sudo npm install -g rawtext2json
$ rawtext2json <file>
e.g. Run the following:
$ rawtext2json EULA.txt
You will get a valid JOSN file EULA.txt.json within the same directory.
FAQs
a CLI utility converts raw text files (text, html etc.) to valid JSON files for importing in React Native projects
We found that rawtext2json 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.