Version: 1.0.0 Date: June 7, 2025
This is a typescript npm package for creating timestamp in readable format.
https://github.com/jadogeri/GetTimeStampTS.git
https://www.npmjs.com/package/@josephadogeridev/get-timestamp-ts
![]() |
![]() |
|---|---|
- 6. References
- Create timestamp as string.
- Resolve undefined and null values as inputs.
- Render results of timestamp after test.
- Junior or Senior developers.
- Beginners learning typescript.
- Programming Languages: Typescript, Javascript
- IDE: Visual Studio Code (VSCode)
- Test: Jest
- Plugins: Early AI
- Registory: NPM (Node Package Manager)
- Source Control: Git and GitHub
- CI/CD: GitHub Actions
- Code Analysis: SonarQube
- FreeCodeCamp : Frontend Web Development: (HTML, CSS, JavaScript, TypeScript, React).
- AweSome Open Source : Awesome Readme Templates
- Readme.so : The easiest way to create a README
- Mockingoose : How to test mongoose models with jest and mockingoose
- NPM : Creating nodejs modules
- Dev.io : Testing npm packages before publishing
- FreeCodeCamp : How to create and publish an NPM Package - step by step guide
- Dev.io : Create and Publish NPM Package for custom Hooks in React JS
This document outlines the package architecture, components, and design considerations for Get TimeStamp TS package. The goal is to create a timestamp in readable format.
This package will allow users to:
1 Type npm install @josephadogeridev/get-timestamp-ts to install dependencies.
npm install @josephadogeridev/get-timestamp-tsimport logo from "./logo.svg";
import "./App.css";
import { getTimeStamp } from "@josephadogeridev/get-timestamp-ts";
export function App() {
const time = getTimeStamp();
return (
<div className="App">
<header className="App-header">
<div>
<h1>{time}</h1>
</div>
<img src={logo} className="App-logo" alt="logo" />
</header>
</div>
)
}note : run test from node_modules after Usage
1 Navigate to cd @josephadogeridev/get-timestamp-ts directory using command below.
cd node_modules/@josephadogeridev/get-timestamp-ts2 Type npm run test to run unit tests.
npm run testimport React from 'react';
import logo from './logo.svg';
import './App.css';
import { getTimeStamp } from '@josephadogeridev/get-timestamp-ts';
function App() {
const time = getTimeStamp();
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
{time}
</header>
{time}
</div>
);
}
export default App;Note : this test was done pre publish to npm manager
1 In the root of package run npm build to generate build (dist) for production.
npm run build2 In the root of package run npm pack to package the module (dist) into a zipped file (.tgz).
npm pack3 Create or use existing React Application.
4 Copy and paste the created file in the root of a React Application.
5 Run command npm install @josephadogeridev/get-timestamp-ts to install created package.
npm install @josephadogeridev/get-timestamp-ts




