Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@besar1/simple-sdk

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@besar1/simple-sdk

A simple SDK with version management and configuration

latest
npmnpm
Version
1.5.0
Version published
Maintainers
1
Created
Source

Simple SDK

A simple, configurable SDK with version management support for both npm and CDN usage.

Installation

NPM

npm install simple-sdk
# or
pnpm add simple-sdk
# or
yarn add simple-sdk

CDN (UMD)

<script src="https://unpkg.com/simple-sdk@latest/dist/index.umd.js"></script>

Usage

ES Modules / CommonJS

import { SimpleSDKClient } from 'simple-sdk';
// or
const { SimpleSDKClient } = require('simple-sdk');

const client = new SimpleSDKClient({
  package: 'npm',
  version: '1.0.0' // optional, defaults to 'latest'
});

// Use the SDK
const result = await client.doSomething();
console.log(result);

UMD (Browser)

<script src="https://unpkg.com/simple-sdk@latest/dist/index.umd.js"></script>
<script>
  const client = new SimpleSDK.SimpleSDKClient({
    package: 'umd',
    version: 'latest'
  });
  
  client.doSomething().then(result => {
    console.log(result);
  });
</script>

API

SimpleSDKClient

Constructor

new SimpleSDKClient(config: SDKConfig)

Configuration

interface SDKConfig {
  package: 'npm' | 'umd';
  version?: string | 'latest';
}

Methods

  • doSomething(): Promise<string> - Example method that returns a success message
  • getConfig(): SDKConfig - Returns the current configuration
  • getVersion(): string - Returns the current version

Features

  • ✅ TypeScript support
  • ✅ Multiple build formats (ESM, CJS, UMD)
  • ✅ Version management
  • ✅ CDN ready
  • ✅ Tree-shakeable
  • ✅ Zero dependencies

License

MIT

Keywords

sdk

FAQs

Package last updated on 29 May 2025

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