pizzadoor-stocks-manager
TypeScript icon, indicating that this package has built-in type declarations

0.6.0Β β€’Β PublicΒ β€’Β Published

Pizzadoor stocks manager

πŸ•πŸ€– Stocks manager for Adial pizza ATM (pizzadoor)

Installation

  npm install pizzadoor-stocks-manager

Usage

Quick start

const PizzadoorStocksManager = require('pizzadoor-stocks-manager');

const config = {};
const credentials = {
  adial: {
    username: 'my-username',
    password: 'my-super-secret-password',
  },
};

let manager = new PizzadoorStocksManager(config, credentials);

manager.fetchAndManage().then(atmsData => console.log(atmsData));

Credentials

Here are all the credentials that might be required to work properly.

const credentials = {
  adial: {
    username: 'my-username',
    password: 'my-super-secret-password',
  },
  sendgrid: {
    apiKey: 'my-api-key',
  },
};

Config

Take a look at the sample.config.js file at the root of the repo to get all the possible settings available.

Issues

Found a bug? Feel free to contact me or open an issue on github. You can also contribute by creating a pull request.

Improvements

This project has recently been migrated to Typescript due to an external need. The typeness support is partial and mostly ensured to have type at the external interface. The internal code is not properly typed. Since a lot of the code is scraping, its format is not stable and it is not easy to type. If you are interested in improving the typing, please feel free to submit a PR.

Readme

Keywords

none

Package Sidebar

Install

npm i pizzadoor-stocks-manager

Weekly Downloads

0

Version

0.6.0

License

MIT

Unpacked Size

228 kB

Total Files

54

Last publish

Collaborators

  • l-portet