Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enplex.js

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enplex.js

Enplex is a versatile JavaScript library. providing a unified interface for multiple APIs and services, Enplex empowers developers to build innovative solutions efficiently.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
205
increased by978.95%
Maintainers
0
Weekly downloads
 
Created
Source

Enplex.js: A Versatile JavaScript Library

Enplex.js is a comprehensive JavaScript library designed to streamline various development tasks. By providing a unified interface for multiple APIs and services, Enplex.js empowers developers to build innovative solutions efficiently.

Key Features:

  1. NextChat:

    • Seamlessly interact with advanced AI models like GPT-4 and Claude.
    • Generate text, images, and analyze image content without the need for API keys.
    • Supported models include: gemini, gemini-pro, gpt4, gpt4o, claude-sonnet, claude-haiku, flux, and flux-pro.
  2. Search:

    • Effortlessly search across popular platforms:
      • YouTube
      • Spotify
      • GitHub
    • Retrieve additional content:
      • Cat facts
      • Dog facts
      • Quotes
      • Waifu images
  3. DiscordWH:

    • Send Discord webhook messages with customizable embeds and attachments.
    • Note: This feature may require additional setup or configuration.
  4. Rectify:

    • Build web applications with a minimalist and efficient Express.js-inspired framework.
    • Enjoy a streamlined development experience with features like routing, middleware, error handling, and static file serving.
  5. Xio:

    • Make HTTP requests with ease, supporting:
      • GET, POST, and other HTTP methods
      • Custom headers and timeouts
      • Retry mechanisms for unreliable APIs
  6. Exe:

    • Execute js codes with ease
    • safer than eval();

Installation:

npm install enplex.js

Usage Examples:

const { nextchat, search, rectify, xio, exe } = require("enplex.js");
// import enplex from "enplex.js/esm";
// const { nextchat, search, rectify, xio, exe } = enplex;

// NextChat

(async () => {
  const response = await nextchat.ask("What is the meaning of life?", { model: "gpt4" });
  console.log(response);
})();

// Search

(async () => {
  const youtubeResults = await search.yt("JavaScript tutorial");
  console.log(youtubeResults);
})();

// Rectify

const app = new rectify();

app.get('/', (req, res) => {
  res.send('Hello, World!');
});

app.listen(3000, () => {
  console.log('Server listening on port 3000');
});

// Xio

(async () => {
  const response = await xio.request('https://api.example.com/data', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ name: 'John Doe' })
  });
  console.log(response);
})();

// Exe

const code = "console.log('hello fron enplex.js')";

exe.run(code);

For more detailed usage and advanced features and support, consider joining our discord server.

Discord Banner

Keywords

FAQs

Package last updated on 16 Nov 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc