open-index/open-npm huggingface dataset:
npm package: @shepherdorg/logger
Description: Logger with a log context concept, nice rendering of error, warn and info logs, with log context on the left. Designed for outputting logs from multiple child processes in parallel. Comes with a test double for easy unit testing of users.
Author: Guðlaugur S. Egilsson
Latest version: 5.2.0

# Shepherd logger

Logger with a log context concept, nice rendering of error, warn and info logs, with log context on the left. 
Designed for outputting logs from multiple child processes in parallel. Comes with a test double for easy unit testing.
npm package: @shepherdorg/nano-inject
Description: Minimalistic dependency injection library...
Author: Guðlaugur S. Egilsson
Latest version: 5.1.0

### Nano dependency injection.

Minimalistic dependency injection library.

The tests are the best documentation in this case.

```typescript
import {expect} from 'chai'
   import {inject} from './inject'
   
   describe('inject dependency injection', function(){
   
       it('should return injected dependency',function(){
           var deps = inject({
               foo:"bar"
           });
           expect(deps("foo")).to.equal('bar');
       });
   
       it('should fail on missing dependency',function(){
           try{
               var deps = inject({
                   foo:"bar"
               });
               deps("baz");
           }  catch (e){
               expect(e.message).to.eql('Required dependency <baz> is not provided.');
           }
       });
   
       it('should not fail on optional missing dependency', function(){
           var deps = inject({
               x:"bar"
           });
           expect(deps("foo", true)).to.equal(undefined);
       })
   
   });
   
   
```