Code Monkey home page Code Monkey logo

calendar's Introduction

Calendar API

License: MIT

A user friendly SDK & API that returns a list of calendar dates for a given year in JSON format. Built with day.js & typescript.

Hey, we're just getting started & are actively seeking contributors & maintainers. If you'd like to get involed feel free to reach out in any open issue, or via email [email protected]. ๐Ÿ™‚
- TY, Mat

On this page

Usage

Via Nodejs

npm install @whilethiscompiles/calendar
const {calendar} = require('@whilethiscompiles/calendar')
calendar(1999); // {january:{count:31,collection:{'1':'1999-1-01','2':'1999-1-02','3':'1999-1-03','4':'1999-1-04','5':'1999-1-05','6':'1999-1-06','7':'1999-1-07','8':'1999-1-08','9':'1999-1-09','10':'1999-1-10','11':'1999-1-11','12':'1999-1-12','13':'1999-1-13','14':'1999-1-14','15':'1999-1-15','16':'1999-1-16','17':'1999-1-17','18':'1999-1-18','19':'1999-1-19','20':'1999-1-20','21':'1999-1-21','22':'1999-1-22','23':'1999-1-23','24':'1999-1-24','25':'1999-1-25','26':'1999-1-26','27':'1999-1-27','28':'1999-1-28','29':'1999-1-29','30':'1999-1-30','31':'1999-1-31'}},february:{count:28,collection:{'1':'1999-2-01','2':'1999-2-02',....

Via HTTP

A public endpoint is available via the GET method & accepts 1 query paramter year=YYYY returns a JSON response

https://calendar.whilethiscompiles.com/api/calendar?year=YYYY

Contributing

This project was build entirely with GitHub's Codespaces & VSCode.

This repo

  • /lib/calendar - NPM Package
  • /lib/calendar-tests - Test suites for calendar as a package
  • /lib/developer - Landing page, public API, documentation. Built with Next.js

calendar's People

Contributors

matthewbub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.