ts-now-cli
v1.1.0
Published
Tiny CLI tool to print formatted timestamps instantly
Maintainers
Readme
⏱ ts-now-cli
A tiny Node.js utility and CLI that returns the current date and time in a clean, readable format.
✨ Features
- 🕒 Get the current timestamp instantly
- 💻 Use as a CLI tool
- 📦 Use as a Node.js package
- ⚡ Lightweight with zero dependencies
📦 Installation
Install globally:
npm install -g ts-now-cliOr install in your project:
npm install ts-now-cli🚀 Usage
CLI
Run:
ts-nowExample output:
🕒 07/05/2026, 10:45:12 PMNode.js
const { getTimeStamp } = require("ts-now-cli");
console.log(getTimeStamp());Output:
07/05/2026, 10:45:12 PM📖 API
getTimeStamp()
Returns the current date and time as a formatted string.
Example:
const { getTimeStamp } = require("ts-now-cli");
const timestamp = getTimeStamp();
console.log(timestamp);📄 License
MIT
