1.0.0 • Published 5 months ago

cursor-rules-t0d v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

T0d Timestamp Management

Simple time verification for your projects.

Version License Node

🚀 Installation

Option 1: Clone and Build

# Clone the repository
git clone https://github.com/3CH0xyz/CursorRulesT0D.git
cd CursorRulesT0D

# Install dependencies and build
yarn install
yarn build

# Run directly
node dist/cli.js status

Option 2: Use directly with npx

# Run without installing
npx github:3CH0xyz/CursorRulesT0D status

📖 Usage

# Check current time
node dist/cli.js status

# Format a specific date
node dist/cli.js format --date "2024-02-21"

# Verify a timestamp
node dist/cli.js verify "2024-02-21T08:30:00Z"

💻 Usage in Code

import { getVerifiedTime } from './dist/timeVerifier';

// Get current time
const time = getVerifiedTime();
console.log(time.utc);    // "2024-02-21T08:30:00Z"
console.log(time.local);  // "2024-02-21 03:30:00"

🔧 Available Commands

  • status - Show current time in UTC and local
  • format - Format current or specific time
  • verify - Check if a timestamp is reasonable

📚 More Information

📝 License

MIT License - see the LICENSE file for details.

✨ Credits

Developed by 3CH0.xyz