Socket
Socket
Sign inDemoInstall

@effection/main

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effection/main - npm Package Compare versions

Comparing version 2.0.0-beta.16 to 2.0.0-beta.17

4

CHANGELOG.md
# @effection/main
## \[2.0.0-beta.17]
- - [0248d79](https://github.com/thefrontside/effection/commit/0248d79a33dcfc4200b0832aba975c9cad08981e) Add package readmes on 2021-09-28
## \[2.0.0-beta.16]

@@ -4,0 +8,0 @@

6

package.json
{
"name": "@effection/main",
"version": "2.0.0-beta.16",
"version": "2.0.0-beta.17",
"description": "Main entry point for Effection applications",

@@ -31,3 +31,3 @@ "main": "dist-cjs/node.js",

"dependencies": {
"@effection/core": "2.0.0-beta.14",
"@effection/core": "2.0.0-beta.15",
"chalk": "^4.1.2",

@@ -37,4 +37,2 @@ "stacktrace-parser": "^0.1.10"

"devDependencies": {
"@effection/mocha": "2.0.0-beta.9",
"@effection/process": "2.0.0-beta.14",
"@frontside/tsconfig": "^1.2.0",

@@ -41,0 +39,0 @@ "@types/node": "^16.3.2",

# @effection/main
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Created by Frontside](https://img.shields.io/badge/created%20by-frontside-26abe8.svg)](https://frontside.com)
[![Chat on Discord](https://img.shields.io/discord/700803887132704931?Label=Discord)](https://discord.gg/Ug5nWH8)
Entry point for Effection applications which provides nice setup and teardown.
Works both in node and browser contexts.
[Effection][] is the structured concurrency toolkit for JavaScript. You can find
detailed information about using `main()` here [https://frontside.com/effection/docs/guides/tasks](https://frontside.com/effection/docs/guides/tasks)
## Usage
``` typescript
import { sleep } from '@effection/core';
import { main } from '@effection/main';
main(function* sayHello() {
console.log('Hello World!');
yield sleep(2000);
console.log('Goodbye World!')
});
```
[Effection]: https://frontside.com/effection
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