logo
0
0
WeChat Login
feat: initialize uskill CLI project with core utilities

uskill

A simple CLI tool for daily development tasks.

Installation

npm install -g uskill

Usage

uskill [command] [options]

Commands

hello

Say hello to someone.

uskill hello <name> uskill hello <name> --excited

time

Display current time in various formats.

uskill time uskill time --format iso uskill time --format unix

calc

Calculate a mathematical expression.

uskill calc "2 + 3 * 4" uskill calc "(10 + 5) / 3"

uuid

Generate a random UUID.

uskill uuid

Help

uskill --help uskill [command] --help

API

This package also exports utility functions:

import { greet, getCurrentTime, calculate, generateUuid } from 'uskill'; greet('World'); // "Hello, World. Welcome to uskill." getCurrentTime('iso'); // "2024-01-01T00:00:00.000Z" calculate('2 + 3'); // 5 generateUuid(); // "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

License

MIT