Skip to content

Commit

Permalink
📝 Convert README example from coffee to js
Browse files Browse the repository at this point in the history
  • Loading branch information
steelbrain committed Feb 8, 2016
1 parent b1b0332 commit 835eb89
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ You need to have an array of package deps in your package manifest, like

Because the package installation is async, it returns a promise that resolves when all the dependencies have been installed.

```coffee
module.exports =
activate: ->
# Note: atom-package-deps package tries to guess name of parent package by __dirname
```js
'use babel'

module.exports = {
activate() {
require('atom-package-deps').install()
.then ->
console.log("All deps are installed, it's good to go")
.then(function() {
console.log('All dependencies installed, good to go')
})
}
}
```

#### API
Expand Down

0 comments on commit 835eb89

Please sign in to comment.