Socket
Socket
Sign inDemoInstall

@coffeekraken/s-builder

Package Overview
Dependencies
630
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @coffeekraken/s-builder

Base class to create builders on top of like the @coffeekraken/s-images-builder, etc...


Version published
Maintainers
1
Created

Readme

Source

@coffeekraken/s-builder

MIT 2.0.0-alpha.20 - Git repository

size downloads license discord

Base class to create builders on top of like the @coffeekraken/s-images-builder, etc...

Install

npm i @coffeekraken/s-builder

SBuilder

This package expose a simple SBuilder class that is meant to be extended for each builder you want to create.

For now, this class is the main one used in builders like:

Features

This simple base class gives you some features like:

  • Specify a @coffeekraken/s-interface interface
  • Expose a build method that accepts a params object which reflect your interface
  • Let you define a _build method that will be called with your resolved params object

Usage

Here's a simple example of a custom builder:

import SBuilder from '@coffeekraken/s-builder';
import SPromise from '@coffeekraken/s-promise';
class MyBuilder extends SBuilder {
  constructor(settings = {}) {
    super(settings);
  }
  _build(params, settings) {
    return new SPromise(({ resolve, reject, emit }) => {
      // compilation logic
    });
  }
}

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Here's all the ways you can contact us listed:

discord email

FAQs

Last updated on 15 Sep 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