Skip to content

Commit

Permalink
Improve feature list and usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Feb 2, 2015
1 parent c338a8f commit cdbfdf5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Expand Up @@ -4,14 +4,14 @@
[![SemVer]](http://semver.org)
[![License]](https://github.com/mantoni/licy.js/blob/master/LICENSE)

Module lifecycle management for Node and the browser.
Object lifecycle management for Node and the browser.

## Features

- Guaranteed destruction of sub components
- Intercept function calls with filters
- Defer function calls until constructor invokes callback
- Receive notifications if new instances are created
- Async creation: Defer function calls until constructor invokes callback
- Events: Define types that automatically emit events for method calls
- Interceptors: Register filters for methods
- Cleanup: Destroy trees of instances

## Install with npm

Expand All @@ -26,17 +26,17 @@ Use [Browserify][] to create a standalone file.
```js
var licy = require('licy');

var Foo = licy.define(function () {
var Car = licy.define(function () {

return {
bar: function () {
drive: function () {
// ...
}
};
});

var foo = new Foo();
foo.bar();
var car = new Car();
car.drive();
```

## API
Expand Down

0 comments on commit cdbfdf5

Please sign in to comment.