Merge pull request #147 from vapor/node

initial node doc for release
This commit is contained in:
Tanner 2017-05-17 13:27:07 +01:00 committed by GitHub
commit 438a4f4116
1 changed files with 29 additions and 0 deletions

29
2.0/docs/node/package.md Normal file
View File

@ -0,0 +1,29 @@
# Using Node
## With Vapor
This package is included with Vapor by default, just add:
```Swift
import Node
```
## Without Vapor
Node provides a lot of conveniences for any server-side, or client side Swift project. To include it in your package, add the following to your `Package.swift` file.
```Swift
import PackageDescription
let package = Package(
name: "Project",
dependencies: [
...
.Package(url: "https://github.com/vapor/node.git", majorVersion: 2)
],
exclude: [ ... ]
)
```
Use `import Node` to access Node's APIs
.