Skip to content

Commit

Permalink
chore(docs): update description
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Jul 12, 2014
1 parent 3cba46f commit 6498478
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -2,5 +2,6 @@ language: node_js
node_js:
- "0.8"
- "0.10"
- "0.11"
before_install:
- npm update -g npm
11 changes: 10 additions & 1 deletion README.md
Expand Up @@ -64,7 +64,6 @@ var human = injecty.inject(HumanFactory)
## API

#### injecty.container([parent])
Returns: `Container`

Creates a new container.
Optionally it can inherit from another container
Expand All @@ -82,9 +81,19 @@ Alias: `require`

Retrieve a registered dependency by its name

```js
injecty.get('Math') // -> {MathConstructor...}
```

#### injecty.register(name, value)
Alias: `set`

Register a dependency in the container
```js
injecty.register('Location', window.location)
injecty.injectable('Location') // -> true
```

#### injecty.invoke([fn|array])

Invoke a function, optinally you can supply the arguments to inject as array notation
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "injecty",
"version": "0.1.0",
"description": "Micro IoC container dependency injection for node and browsers",
"description": "Micro dependency injection and inversion of control container for node and browsers",
"license": "MIT",
"author": "Tomas Aparicio",
"main": "./injecty.js",
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "injecty",
"version": "0.1.0",
"description": "Micro IoC container dependency injection for node and browsers",
"description": "Micro dependency injection and inversion of control container for node and browsers",
"homepage": "http://github.com/h2non/injecty",
"bugs": "https://github.com/h2non/injecty/issues",
"author": "Tomas Aparicio",
Expand Down

0 comments on commit 6498478

Please sign in to comment.