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

@effet/core

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effet/core

Composable, declarative effects

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

@effet/core

Core package. Use this with others to enhance your effects.

API

Table of Contents
  • construct
  • Chain
  • Operators
  • project

construct

This is the main juice of the library. This function behaves similarily to pipe - it is a variadic function that accepts operators as arguments.

Parameters
  • operators ...any

Returns Chain

Chain

construct returns this instance for convinience.

extend

Creates a new effect chain (based on this one), but allows you to extend it with additional operators.

Parameters
  • operators ...[Operator] An array of operators to extend the chain.

Returns Chain New, separate instance of Chain.

Operators

This is a list of operators that are available in the core package.

source

This operator sets the input data for the effect to an arbitrary value.

Parameters
  • input any A value that will become the new input data

Returns Operator An instance of this operator

project

Assuming the output is an object or an array of objects, project filters the resulting properties based on the array of allowed keys.

Parameters
  • keys [String] An array of keys that will be present in the resulting object.

FAQs

Package last updated on 23 Nov 2019

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