
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
todolibformobileapp
Advanced tools
A comprehensive ToDo library for managing categories and tasks with priority, recurring schedules, and automatic cleanup
A comprehensive JavaScript library for managing todo categories and tasks with advanced features like priority management, recurring schedules, and automatic cleanup.
npm install todolibformobileapp
// ES6 Modules
import ToDoLib from "todolibformobileapp";
// or import specific functions
import { addCategory, addTask, sortToDos } from "todolibformobileapp";
// Create a new category
let data = [];
data = ToDoLib.addCategory(data, "cat_001", "Work", "#FF5733");
// Add a task to the category
data = ToDoLib.addTask(data, "cat_001", {
name: "Complete project",
notes: "Finish the final implementation",
canBeRepeated: false,
});
// Sort the data
data = ToDoLib.sortToDos(data);
addCategory(data, _id, name, color)
Adds a new category to the data.
data
: Array of category objects_id
: Unique identifier for the categoryname
: Category namecolor
: Category color (hex code)deleteCategoryById(data, _id)
Deletes a category by its ID.
updateCategoryPriority(data, _id, newPriority)
Updates the priority of a category.
toggleCategoryDone(data, _id, status?)
Toggles the done status of a category and all its tasks.
addTask(data, _id, taskDetails)
Adds a task to a specific category.
const taskDetails = {
name: "Task name",
notes: "Task description",
canBeRepeated: true,
when: "Monday,Wednesday,Friday",
};
addOrUpdateTask(data, _id, name, notes?, canBeRepeated?, when?)
Adds a new task or updates an existing one.
updateTask(data, _id, taskName, updateDetails)
Updates an existing task's properties.
deleteTask(data, _id, name)
Deletes a task from a category.
updateTaskPriority(data, _id, name, newPriority)
Updates the priority of a specific task.
toggleTaskDone(data, _id, name, status)
Toggles the done status of a task.
sortToDos(data)
Sorts categories and tasks by priority.
getModifiedCategories(data)
Returns categories that have been modified.
chron(data)
Processes recurring tasks and cleans up completed tasks.
Returns an object with:
update
: Modified categoriesdelete
: Array of deleted category IDs{
_id: "cat_001",
name: "Work",
color: "#FF5733",
priority: 1,
done: 2,
notDone: 3,
total: 5,
isMarkedDone: false,
tasks: [...]
}
{
name: "Complete project",
notes: "Finish the implementation",
priority: 1,
done: false,
canBeRepeated: true,
when: "Monday,Wednesday,Friday"
}
The library supports flexible recurring task scheduling:
Use the chron()
function to process recurring tasks automatically.
MIT
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)For issues and questions, please use the GitHub Issues page.
FAQs
A comprehensive ToDo library for managing categories and tasks with priority, recurring schedules, and automatic cleanup
The npm package todolibformobileapp receives a total of 331 weekly downloads. As such, todolibformobileapp popularity was classified as not popular.
We found that todolibformobileapp demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.