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

@igeek/core

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@igeek/core

Core package to check compatibility

  • 1.2.6
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Core: The Essential Origin Verification Tool

Core is a lightweight and robust package designed to help developers streamline origin verification and integration processes in their applications. With minimal configuration, Core ensures smooth initialization and efficient origin tracking.


Features

  • Seamless Integration: Easily integrate with any js based projects.
  • Origin Tracking: Helps manage and verify origins dynamically.
  • Lightweight and Efficient: Built with performance and simplicity in mind.

Installation

npm install @igeek/core

Usage

Initialize

(async () => {
  const core = new Core();
  const isVerified = await core.init();

  if (isVerified) {
    console.log("Initialization successful!");
  } else {
    console.log("Initialization failed.");
  }
})();

Parameters

ParameterTypeDescriptionDefault
callKeystringThe API endpoint used for origin verification.https://<your_base_url>.com
originstringThe identifier for the origin being verified."default"

API

Core.init(): Promise<boolean>

  • Description: Verifies the current origin using the provided callKey.
  • Returns: true if verification is successful; false otherwise.

Use Cases

  • Origin-Based Validation: Ensure only authorized origins can interact with your application.
  • Dynamic Configuration: Validate runtime configurations efficiently for modular systems.
  • Lightweight Authentication: Minimal overhead for quick validations.

Why Core?

Core is designed for developers who prioritize flexibility and reliability. Whether you're building a microservice, integrating third-party tools, or managing multi-origin applications, Core simplifies origin management.


License

MIT


Disclaimer

This package is intended for origin validation and tracking purposes. Misuse of this tool for unintended purposes is discouraged.


FAQs

Package last updated on 18 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