GitShow/tj/co-monk
tj

co-monk

MongoDB generator goodness for node.js

by tj
Star on GitHubForknpm

JavaScript

154 stars13 forks2 contributorsQuiet · 10y agoSince 2013

Meet the team

See all 2 on GitHub →
tj
tj6 contributions

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

1 of 6 standards met

Community profile →
28
✓README○License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 10y ago
See all on GitHub →
egeland
"TypeError: object is not a function" when using co with co-monkOpenIssue

Hi, I'm still a JS newbie, and very much a n00b to generators, , and . Probably, I'm making a silly error, but my Google-fu is failing me, so I'm hoping for a pointer in the right direction.. I get a "TypeError: object is not a function" when trying the example in https://github.com/tj/co-monk/tree/67a867016c945ea9cb6cafdc8b5c97788b797ac5 (using so that won't get an error): Here's my code: What am I doing wrong? Running , and get the same error with or without option.

egeland · 9y ago
michaelgmcd
Updating monk to version ^1.0.1 and adding to list of methods to wrap.OpenPR

I bumped to monk version in the dependencies, which requires mongodb@~1.4 as a peerDependency. With monk ^1.0.1 there is a removeById method which I've added to the list of methods to wrap.

michaelgmcd · 10y ago
wmehanna
co-monk yield call not working on function generator inside a classOpenIssue

I'm getting undefined ouput when calling for the returned value comming from the yield call. It worked with co library. here's my code :

wmehanna · 10y ago

Recent fixes

View closed PRs →
andrey-aleshkov
How to update multiple documents?ClosedIssue

Thanks!

andrey-aleshkov · 9y ago
marcusoftnet
Added example on how to use the code with coMergedPR

Because the "SyntaxError: Unexpected identifier" trips me up every time.

marcusoftnet · 11y ago
marcusoftnet
Get collection helperMergedPR

I grew tired writing the same four lines over and over again, so I started to implement a little helper function in my projects. After a while I thought that it might be a nice addition to the co-monk project itself. So instead of doing you can now just go which is a bit nicer I think. Preferably I wanted to create an overload constructor, eliminating the need for the function call, but my Node knowledge failed me. Especially with the funky "looping over methods and thunkify them" thing that was going on. If you think that would be better, please give me some pointers and I'll try to fix it up. I was starting to think if monk itself now can be hidden by this project. Are you only using the helper method there's not use for the database. I have created a method to return the monk database too, btw. But for the client using co-monk you should not need to use monk. I have also updated the README to reflect the changes. HTH

marcusoftnet · 11y ago
Structured data for AI agents

Repository: tj/co-monk. Description: MongoDB generator goodness for node.js Stars: 154, Forks: 13. Primary language: JavaScript. Languages: JavaScript (100%). Open PRs: 1, open issues: 4. Last activity: 10y ago. Community health: 28%. Top contributors: tj.

·@ofershap

Replace github.com with gitshow.dev