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

yielding

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yielding - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

0

examples/ncall.js

@@ -0,0 +0,0 @@ var Y = require('..');

@@ -0,0 +0,0 @@ var fs = require('fs');

@@ -0,0 +0,0 @@ var Y = require('..');

@@ -0,0 +0,0 @@ var fs = require('fs');

@@ -0,0 +0,0 @@ var Y = require('..');

@@ -0,0 +0,0 @@ var Y = require('..');

@@ -0,0 +0,0 @@ var Y = require('..');

@@ -0,0 +0,0 @@ var q = require('q');

@@ -0,0 +0,0 @@ var fs = require('fs');

@@ -0,0 +0,0 @@ var Y = require('..');

2

lib/yielding.js

@@ -24,3 +24,3 @@ (function (factory) {

Y.VERSION = '0.2.1';
Y.VERSION = '0.2.2';

@@ -27,0 +27,0 @@

{
"name": "yielding",
"version": "0.2.1",
"version": "0.2.2",
"description": "Easy generators",

@@ -5,0 +5,0 @@ "main": "./lib/yielding.js",

@@ -79,3 +79,3 @@ yielding

```
###Error handling
###Errors handling
```js

@@ -91,2 +91,8 @@ Y(function* () {

```
###SUSPEND-style
```js
Y(function *async() {
var content = yield fs.readFile('test/example.txt', 'utf8', async.resume);
})();
```
[See more examples](https://github.com/mikach/yielding/tree/master/examples)

@@ -0,0 +0,0 @@ var Y = require('..');

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