date-utils

v1.0.0

Provides date and time manipulation operations for working with dates. Use when you need to format, parse, compare, or manipulate dates and times.

0· 113·0 current·0 all-time
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description (date/time manipulation) match the provided code: formatting, parsing, arithmetic, comparisons, ranges, and relative-time helpers are implemented. No unrelated capabilities (cloud, network, or system-level access) are requested.
Instruction Scope
SKILL.md usage examples are scoped to requiring and calling the date functions only. Minor inconsistencies: the example shows require('./skills/date-utils') while package.json/main points to index.js at the package root; the test script calls require('./index.js').main() even though the code appears to expose functions rather than a main() entry. These are packaging/usability issues, not evidence of malicious behavior.
Install Mechanism
There is no install specification (instruction-only for the runtime), and the package contains a simple index.js and package.json. Nothing is downloaded from external URLs or written during install.
Credentials
The skill does not request any environment variables, credentials, or config paths. The code does not reference process.env or other secrets-related APIs.
Persistence & Privilege
Flags show always:false and normal invocability. The skill does not attempt to persist or modify other skills or global agent settings.
Assessment
This appears to be a straightforward date/time utility library. Before installing or using it, check these minor issues: (1) SKILL.md's require path ('./skills/date-utils') doesn't match package layout (index.js at package root) — adjust your import path. (2) package.json test calls a main() that may not exist — ensure the module exports the functions you need (module.exports) or add an entry point. Run the code locally and review exports to confirm it works in your environment. No secrets or network access are requested, but always inspect bundled code before trusting third‑party packages.

Like a lobster shell, security has layers — review code before you run it.

latestvk973m3gezfwfad69kbxat1td1s83pma7
113downloads
0stars
1versions
Updated 3w ago
v1.0.0
MIT-0

Date Utils

Provides date and time manipulation operations.

Usage

const date = require('./skills/date-utils');

// Formatting
const formatted = date.formatDate(new Date(), 'YYYY-MM-DD HH:mm:ss');

// Parsing
const parsed = date.parseDate('2024-03-15', 'YYYY-MM-DD');

// Differences
const diff = date.diffDays(date1, date2);

// Add/Subtract
const tomorrow = date.addDays(new Date(), 1);
const lastWeek = date.subtractDays(new Date(), 7);

Features

  • Date formatting with patterns
  • Date parsing from strings
  • Date arithmetic (add/subtract)
  • Date comparisons
  • Timezone handling
  • Calendar generation
  • Relative time (ago, fromNow)
  • Duration calculations

Comments

Loading comments...