Socket
Socket
Sign inDemoInstall

adanjz-pexels

Package Overview
Dependencies
3
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    adanjz-pexels

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


Version published
Maintainers
1
Install size
82.4 kB
Created

Readme

Source

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.

FAQs

Last updated on 18 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc