Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@visimedia/part-of-day
Advanced tools
A simple TS compatible library that returns either morning, afternoon or evening dependent on a given EPOCH time.
A simple TS compatible library that returns either morning, afternoon or evening dependent on a given EPOCH time.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Part of Day is a dependency free typescript compatible module
This is an example of how to list things you need to use the software and how to install them.
npm install npm@latest -g
npm install @visimedia/part-of-day
Part of Day comes with 3 functions. get, getByHour and getNow. All functions return either MORNING, AFTERNOON or EVENING dependent on the time of day.
get consumes epoch time (in milliseconds)
get(epochTime)
getByHour consumes the hour of the day
getByHour(14)
getNow consumes no parameters and returns the current time of day
getNow()
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE.txt
for more information.
VisiMedia - @VisiMedia - contact@visimedia.co.uk
Ben Lewis - @BenjiSoft - ben.lewis@visimedia.co.uk
Project Link: https://github.com/VisiSolutions/Part-of-Day
FAQs
A simple TS compatible library that returns either morning, afternoon or evening dependent on a given EPOCH time.
We found that @visimedia/part-of-day demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.