Version: 1.0.0 Date: June 7, 2025
This is a javascript npm package for creating timestamp in readable format.
https://github.com/jadogeri/GetTimeStampJS.git
https://www.npmjs.com/package/@josephadogeridev/get-timestamp-js
![]() |
![]() |
---|---|
- 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 javascript.
- Programming Languages: 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 JS package. The goal is to create a timestamp in readable format.
This package will allow users to:
1 Type npm install @josephadogeridev/get-timestamp-js to install dependencies.
npm install @josephadogeridev/get-timestamp-js
import logo from "./logo.svg";
import "./App.css";
import { getTimeStamp } from "@josephadogeridev/get-timestamp-js";
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-js directory using command below.
cd node_modules/@josephadogeridev/get-timestamp-js
2 Type npm run test to run unit tests.
npm run test
Note : this test was done pre publish to npm manager
1 In the root of package run npm link to create symbolic link between a local package under development and another Node.js project that wants to use it as a dependency.
npm link
2 Create or use existing React Application.
3 Run command npm link @josephadogeridev/get-timestamp-js to install created package.
npm link @josephadogeridev/get-timestamp-js
import logo from './logo.svg';
import './App.css';
import { getTimeStamp } from "@josephadogeridev/get-timestamp-js";
function App() {
const time = getTimeStamp();
return (
<div className="App">
<header className="App-header">
<h1>{time}</h1>
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
}
export default App;
Note : this test was done pre publish to npm manager
1 In the root of package run npm pack to package the module into a zipped file (.tgz).
npm pack
2 Create or use existing React Application.
3 Copy and paste the created file in the root of a React Application.
4 Run command npm install @josephadogeridev/get-timestamp-js to install created package.
npm install @josephadogeridev/get-timestamp-js