1.1.0 • Published 7 months ago

adanjz-pexels v1.1.0

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

nodejs-pexels

A Node.js package to fetch HD video links from Pexels based on a given topic.

npm version

Installation

To install the package via npm, run:

npm install adanjz/pexels

Usage

After installation, you can use the package to fetch HD video links from Pexels:

const getVideo = require('adanjz/pexels');

(async () => {
    const video = await getVideo('Nature', 'YOUR_PEXELS_API_KEY');
    console.log(video);
})();

Replace 'YOUR_PEXELS_API_KEY' with your actual Pexels API key.

Configuration

Before you can use the package, make sure to set up the required environment variables. You can utilize the dotenv package to load your Pexels API key from a .env file.

Example of .env content:

PEXELS_API=your_pexels_api_key

Contribution

Contributions, issues, and feature requests are welcome! Check out the GitHub repo.

1.1.0

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago