
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Bindable key-value storage.
npm install aware --save
.on(key, handler) - listening for key changes.off(key, handler) - unlistening key changes.get(key, 'value') - getting key value.set(key, 'value') - setting key value.set({key: 'value'}) - bulk set keys on dictionaryvar aware = require('aware');
var store = aware();
store.on('name', function(name){
console.log(name);
}
store.set('name', 'bender'); // will fire handler above
store.get('name'); // bender
// since the property exists now, this handler will be fired right
// away, and after that every time the value for 'name' changes
var name_handler = function(name) {
console.log(name);
};
store.on('name', name_handler);
store.set('name', 'bender'); // will fire nothing
store.set('name', 'john'); // will fire callback again
store.set('name', 'lecter'); // will fire callback again
// unlistening
store.off('name', name_handler);
store.set('name', 'peter'); // will fire nothing
```
### With objects
````javascript
var store = aware({
set_name: function(name){
this.set('name', name);
}
});
store.on('name', function(name){
console.log('name changed', name);
});
store.set_name('name', 'bender');
function Store(){
aware(this);
}
Store.prototype.set_name = function(name){
this.set('name', name);
}
var store = new Store();
store.on('name', function(name){
console.log('name changed', name);
});
store.set_name('name', 'bender');
Lets you compose keys bundling it based on values from one or more different keys.
var store = aware();
store.on('name', function(name){
console.log('name changed', name);
});
store.set('name', '#{first-name} #{second-name}');
store.set('first-name', 'hannibal');
store.set('last-name', 'lecter');
The MIT License (MIT)
Copyright (c) 2013 Anderson Arboleya
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Bindable key-value storage
We found that aware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.