1.2.4 • Published 11 months ago

@hyoretsu/providers v1.2.4

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

A collection of useful backend providers

If you're using tsyringe, be sure to use container.registerInstance() instead of container.registerSingleton() and to instantiate the classes using new Class() for providers that have constructors.

  • hashProviders

A simple provider to generate and compare hashes.

You need environment variables to use it.

HASH_DRIVER = "bcrypt"

  • mailProviders

A simple provider to send emails using Nodemailer. Has constructor.

You need environment variables to use it.

MAIL_DRIVER = "ethereal" | "gmail" | "nodemailer" | "sendgrid"

If using Gmail/Nodemailer:

  • MAIL_PASS
  • MAIL_USER

If using Nodemailer:

  • MAIL_HOST
  • MAIL_PORT

If using Sendgrid:

  • SENDGRID_API_KEY
1.2.0

1 year ago

1.2.4

11 months ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.12

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago