
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Multiple replaces on String (text) based on a predefined rules defined as a parameter. Useful in cases where a String template is being used. Also it can be a lightweight solution for HTML templates.
Recursively runs multiple replaces on String (text) based on a predefined rules defined as a parameter. Useful in cases where a String template is being used. Also it can be a lightweight solution for HTML templates.
var strMessageTemplate = 'Dear {{name}}, could you {{something}} {{date}}';
morphText(strMessageTemplate,{
'{{name}}': 'Function',
'{{something}}': 'replace these texts for me?',
'{{date}}': new Date()
});
// Returns: "Dear Function, could you replace these texts for me? Sun May 10 2015 01:04:20 GMT-0300 (BRT)""
For web, just include the main file found under /lib. To be used on Node:
npm install morph-text
FAQs
Multiple replaces on String (text) based on a predefined rules defined as a parameter. Useful in cases where a String template is being used. Also it can be a lightweight solution for HTML templates.
The npm package morph-text receives a total of 1 weekly downloads. As such, morph-text popularity was classified as not popular.
We found that morph-text 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.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.