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

@coffeekraken/s-code-formatter

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coffeekraken/s-code-formatter

Base class to be used to create code formatters like the @coffeekraken/s-code-formatter-prettier.

  • 2.0.0-beta.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

@coffeekraken/s-code-formatter

MIT 2.0.0-alpha.20 - Git repository

size downloads license discord

Base class to be used to create code formatters like the @coffeekraken/s-code-formatter-prettier.

Install

npm i @coffeekraken/s-code-formatter

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

Package last updated on 15 Sep 2023

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