Not entirely. It seems that canihaz seems to solve resolving Node 
dependencies lazily to reduce code bloat. This would seem to resolve the 
task of having to install all dependencies when the node_modules folder is 
ignored by git.

Injector allows you to create local modules and include them in other 
injectoable modules without any knowledge of which folder/subfolder they 
reside in (soon to include the node_modules folder). This is based off the 
way Angular handles dependency injection in 
controllers/services/directives/etc.

The idea is to create tidy modules that are easily mocked/stubbed for 
testing while easily useable in a modular Node application.

On Thursday, April 25, 2013 10:28:15 AM UTC-7, Nuno Job wrote:
>
> Is this similar to https://github.com/3rd-Eden/canihaz ?
>
> Nuno
>
>
> On Thu, Apr 25, 2013 at 4:09 PM, Scott Corgan <[email protected]<javascript:>
> > wrote:
>
>> Welcome. Would love to see how you're using and any feedback on how to 
>> make it better!
>>
>> On Tuesday, April 23, 2013 11:05:42 PM UTC-7, Donald Pipowitch wrote:
>>>
>>> Hi Scott,
>>>
>>> I'm also a big fan of Angulars dependency injection and looked exactly 
>>> for a solution like yours. Thank you very much for sharing this.
>>>
>>> Am Samstag, 20. April 2013 19:19:27 UTC+2 schrieb Scott Corgan:
>>>>
>>>> Not sure what kind of backlash I'll get for doing things slightly 
>>>> different than the "Node" way, but I wrote what I believe is the easiest 
>>>> and lightest solution I've seen for dependency injection for Node.
>>>>
>>>> It's call Injector <https://github.com/scottcorgan/Injector> (
>>>> https://github.com/**scottcorgan/Injector<https://github.com/scottcorgan/Injector>
>>>> )
>>>>
>>>> The idea is that you add a comment at the top of the file "// inject", 
>>>> then these files are automatically loaded and ready for injection. I've 
>>>> found it MUCH easier to inject mocks for tests. Also, when using this 
>>>> module, directory structure is only for visual organization for the coder. 
>>>> No need to worry about where the file is located, especially if you move 
>>>> the file to a different directory. Normally I'd just use another module, 
>>>> but I didn't find anything that was just easy. A lot of how the injection 
>>>> works is based off of the AngularJS source code.
>>>>
>>>> Anyways, would love some feedback. Always looking to improve the coding 
>>>> experience for developers.
>>>>
>>>  -- 
>> -- 
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines: 
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "nodejs" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to