Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
A powerful tool for automatically generating TODO comments in your JavaScript and Python code files. Leveraging the capabilities of the Polyfact AI model, this tool scans through your code, recognizes areas for improvement, and inserts insightful TODO comments at the top of your files.
.js
and .py
files.Install the package locally in your project:
npm install ai-todo
Or globally for system-wide access:
npm install -g ai-todo
For a quick run, you can use the following command:
npx ai-todo <directory>
Replace <directory>
with the path to the directory containing your code files.
To process a single file, you can use the processFile
function:
import { processFile } from 'ai-todo';
const filePath = './path/to/yourfile.js';
const TODOsPath = './path/to/TODOS.md';
processFile(filePath, TODOsPath);
To process an entire directory, use the processDirectory
function:
import { processDirectory } from 'ai-todo';
const dir = './path/to/your/directory';
const TODOsPath = './path/to/TODOS.md';
processDirectory(dir, TODOsPath);
You can also customize the TODO generation by adding a norm in the TODOS.md
file at the root directory:
norm=YourCustomNorm
This norm will be used as a context when generating TODO comments.
If you have ideas for more functionalities or found a bug, please open an issue or send a pull request.
Made with :heart: by Gautam.
Powered by Polyfact.
FAQs
Create Code TODOs using AI
The npm package ai-todo receives a total of 1 weekly downloads. As such, ai-todo popularity was classified as not popular.
We found that ai-todo 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.