
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

CLI and CommonJS module to replace console log calls with NOOPs which can later be restored.

As global CLI:
[sudo] npm install -g ti-stealth
As a dependency in your projects package.json:
{
"name": "your-project",
"dependencies": {
"ti-stealth": "*"
}
}
Stealth can be used both as CLI and CommonJS module.
The number one usage for this package is to remove all other then error logging from production builds. The included example alloy.jmk can be dropped in your Alloy project's app folder or merged with whatever you have there. It will automatically stealth all the logs calls when you build for production (includes Ad Hoc), without changing anything in your app folder.
Hit ti-stealth -h for full usage, but these examples should do:
Processes all JS under the CWD to stealth all log calls:
~/myproject $ ti-stealth enable
Processes the given directory to stealth only debug and info level calls:
$ ti-stealth enable ~/myproject -l debug,info
Processes the given file to stealth all but error level caals:
$ ti-stealth enable ~/myproject/app/alloy.js -n error
Processes the given file to restore all stealthed info level log calls:
$ ti-stealth restore ~/myproject/app/alloy.js -l info
Process the given code:
$ ti-stealth enable "Ti.API.info('hello world')"
Pretty useless in CLI, but nice via the module ;)
If you use Stealth as a CommonJS module pass the input as the first argument and the options as the second. You will be returned an array of files changed:
var stealth = require('ti-stealth');
stealth.enable('/usr/admin/myproject', {
notLevels: ['error']
});
Some notes:
input property.
[sudo] npm install -g grunt-cligit clone https://github.com/fokkezb/ti-stealth.git && cd ti-stealth && npm installgrunt testPlease report issues and features requests in the repo's issue tracker.
Distributed under MIT License.
FAQs
Remove console logging from your Titanium apps.
We found that ti-stealth 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
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.