
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Barney is a collection of Angular micro-libraries, useful for various purposes.
Barney is a collection of Angular micro-libraries, useful for various purposes.
Every micro-library is indipendent, tested and documented.
This is the list of Barney libreries with related description:
| Library | Description |
|---|---|
| Browser | It allows to manage paths, states and query string of your browser. |
| Config | It allows to manage configuration parameters of your application. |
| Dictionary | It allows to manage dictionary keys of your application. |
| Infinite | It allows to use the infinite-scoll feature: it runs a method (i.e. call an API) when the user scrolls the page and reaches the end of a component (i.e. a list of items). |
| Live HTML | It allows to load trusted HTML code in your application, without pre-checks and sanitization. |
| Meta | It allows to set different metatags for each page, in an Angular application. |
bower install --save barney
<script src="bower_components/barney/dist/infinite.min.js"></script>
angular.module('myproject', [ ..., 'barney'])
npm install --save barneyjs
<script src="node_modules/barneyjs/dist/infinite.min.js"></script>
angular.module('myproject', [ ..., 'barney'])
To read documentation, open
http://d-mobilelab.github.io/barney/temp replacing temp with version number.
For example, for version 4.0.0, open
http://d-mobilelab.github.io/barney/4.0.0
git clone https://github.com/D-Mobilelab/barney.git barney
npm install -g bower grunt
npm install
bower install
| Command | Description |
|---|---|
| grunt lint | Run es-lint to check that code respects the style guide. Single run task. |
| grunt test | Run unit test. Single run task. |
| grunt coverage | Run unit test, calculate coverage, run a local server to display the coverage report and wait. When a file is changed (in "example", "src" or "test" folder), the test re-run and the server is reloaded. P.S. to read coverage, open "lcov-report" folder in browser. |
| grunt doc | Create temporary documentation, run a local server to display it and wait. When a file is changed (in "modules" folder), the documentation is re-created and the server is reloaded. |
| grunt serve | Run a local server on "example" folder. When a file is changed (in "example" or "src" folder), the server is reloaded. |
| grunt travis | Create a new build, run unit test, calculate coverage, send coverage to coveralls, run es-lint and create a temporary documentation. (This command can be executed only on Travis; it's useful to check if build is successful). |
| grunt version | Create a new build, run unit test, calculate coverage, run es-lint, create a new version (major, minor or patch), create a new official documentation. |
Barney uses Git flow to create a new feature or make an hotfix and Semantic Versioning to create a new version.
grunt version
? Current: 1.1.0 - Choose a new version for Barney: (Use arrow keys)
❯ No new version
Major Version (2.0.0)
Minor Version (1.2.0)
Patch (1.1.1)
? Features for version 1.2.0 (use ";" to separate features): ()
Commit, Push, Tag, Docs and NPM version will be automatically updated during the grunt version process
The new Barney version is ready!
Try running the following commands
npm login
npm publish
The new version will be now published on npm!
FAQs
Barney is a collection of Angular micro-libraries, useful for various purposes.
We found that barneyjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.