Weaselpecker v1.1.0 released and available on NPM

I few months ago I wrote a little module for mocking Waterline models, you can check my related post here “Weaselpecker: Node.js- Waterline Simple Mocking Library”. It seems the module was useful for some developers (which is great 😀 ) so I took a few hours to review my code and add a couple extra features. I’ve released v1.1.0 which is available on NPM https://www.npmjs.com/package/weaselpecker. Installation npm install weaselpecker --save-dev Examples here https://github. [Read More]

Managing your JavaScript Dependencies with RequireJS

RequireJS is a module loader for JavaScript. RequiresJS is based on the AMD (Asyncronous Module Definition) API specification, which provides a mechanism for defining and consuming modules. When you require or use a module, it will be retrieved asynchronously and cached at the time you need it, that improves performance since you don’t need to load all your dependencies (JavaScript files) at the same time.

[Read More]

Node.js Modeshape REST Client


Modeshape is an hierarchical data store written in Java and is part of the JBoss portfolio . ModeShape clients are based on JSR 283 also known as JCR (Java Content Repository). There’s another popular implementation of JCR called Jackrabbit, part of the Apache Software Foundation.

Content Repositories such ModeShape are great for data organized in a tree like structure such Content Management Systems, Digital Assets Managers, Document Management Systems, Social Collaboration Systems etc.

[Read More]

Node.js Code Coverage with Istanbul and Mocha

Code coverage is a measure of how much of your code has been  tested. Code coverage tools run a set of metrics in order to determine if your code has been completely tested, reducing the chance of  unwanted bugs.

You have to take into account that even if your code has 100% code coverage, that doesn’t guarantee all your tests are correct, there are some logical bugs you might miss, but as with anything, practice will help you with that.

[Read More]

Web Components

Web components is a set of standards which brings technologies we were used to, but normally provided by frameworks or libraries such angular, ember, knockout (among others). Web Components standard natively supports in the web browser custom HTML elements, HTML imports and templates, also “shadow DOM” which extends the current DOM specification providing boundaries and better encapsulation between DOM trees.

[Read More]