pn-datetime
v1.0.1
Published
A simple Node.js CLI and module to display the current date and time in a user-friendly format.
Readme
pn-datetime
A simple Node.js CLI and module to display the current date and time in a user-friendly format.
Features
- CLI tool to print the current date and time
- Importable function for use in your own projects
- Zero dependencies
Installation
You can use it directly with npx (no install required):
npx show-datetimeOr install globally:
npm install -g pn-datetimeOr add to your project:
npm install pn-datetimeUsage
CLI
After installing (or with npx):
show-datetimeThis will print the current date and time, e.g.:
🕒 Current Date & Time: 7/26/2025, 10:15:00 AMAs a Module
You can import and use the function in your own code:
import { showDateTime } from "pn-datetime";
showDateTime();API
showDateTime()
Prints the current date and time to the console in a readable format.
License
ISC
