1.0.2 • Published 6 months ago

@visimedia/part-of-day v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Contributors Forks Stargazers Issues MIT License LinkedIn

About The Project

Built With

  • Node
  • TypeScript

Getting Started

Part of Day is a dependency free typescript compatible module

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
    npm install npm@latest -g

Installation

  1. Install NPM package
    npm install @visimedia/part-of-day

Usage

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()

Roadmap

  • More detailed configuration
  • Capitalisation control

See the open issues for a full list of proposed features (and known issues).

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

VisiMedia - @VisiMedia - contact@visimedia.co.uk
Ben Lewis - @BenjiSoft - ben.lewis@visimedia.co.uk

Project Link: https://github.com/VisiSolutions/Part-of-Day

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago