npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

epitech-room-finder

v0.1.5

Published

Saves you the headache of finding the best room to work in in Epitech

Downloads

4

Readme

Epitech room finder

Vous connaissez ce sentiments d'injustice profond, quand vous vous êtes installés confortablement dans une salle, que vous êtes plongés dans votre travail, et qu'un AER arrive pour dire : “S'il vous plait sortez de la salle. Il va y avoir une activité dans dix minutes.” Et bien maintenant ce problème est résolu ! Avec ce module, vous pourrez vérifier chaque jours quelles salles sont libres afin de ne plus jamais être dérangé !

Instalation

npm install epitech-room-finder

Utilisation

Exemple

const finder = require('epitech-room-finder')

//Initialize the module
finder.init(token, login, city, roomList)

finder.find(date)
.then(function (list) {
  //Use the available room list
})
.catch(function (err) {
  //An error occured
})

Initialisation

module.init(token, login, city, roomList) prend quatre arguments:

  • token: lien d'autologin récupéré dans l'onglet administration de l'Intra
  • login: adresse mail @epitech.eu
  • city: code en trois lettre de la ville (ex: LYN pour Lyon)
  • roomList: liste des salles à analyser. Des alias permettent de préciser les croisements entre les salles. Cette liste est un objet JSON suivant ce modèle :
{
  "rooms": [
    "salle 1",
    "salle 1.1",
    "salle 2",
    "etc..."
  ],
  "alias": {
    "salle 1.1": "salle 1",
    "salle 1.2": "salle 1",
    "salle 1": ["salle 1.1", "salle 1.2"]
  }
}

Récupérations des salles

module.find(date) => Promise(list) date est une date sour la forme YYYY-MM-JJ. module.find() renvoie une Promise qui contient la liste des salles ne contenant aucune activité dans la journée.