Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nodert/nodert-npm
A NodeRT NPM package
https://github.com/nodert/nodert-npm
Last synced: 5 days ago
JSON representation
A NodeRT NPM package
- Host: GitHub
- URL: https://github.com/nodert/nodert-npm
- Owner: NodeRT
- License: other
- Created: 2016-08-14T19:16:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-15T16:39:35.000Z (over 8 years ago)
- Last Synced: 2024-11-19T19:02:25.239Z (2 months ago)
- Language: C++
- Size: 243 KB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
NodeRT - Use WinRT/UWP APIs in node.js
=====Please note: This is the npm package for NodeRT that let you use install/generate the modules easily from the command line,
for the full documentation + examples, please refer to the official NodeRT documantation: https://github.com/NodeRT/NodeRT.Create NodeRT modules from the cmd line!
###Installation
Install locally using npm install or install globally by running:
```
npm install -g nodert
```###Usage
Use the nodert package to generate NodeRT moduels on the fly!
Usage:
```
nodert [options]Commands:
install Installs the required NodeRT modulesOptions:
-h, --help Show help
-m, --modules The modules to generate, separated by a semi-colon
-o, --outdir The output directory pathExamples:
"nodert install"
Installs the NodeRT modules listed in the package.json file under the "_nodert.modules"
path in the local node_modules directory
"nodert install -m windows.devices.geolocation;windows.devices.sensors -o c:\mydir\mycode"
Installs the windows.devices.geolocation and windows.devices.sensors NodeRT modules
under the path: c:\myrdir\mycode
```
###Install NodeRT modules using package.jsonWith the nodert npm package you can also specify you nodert dependencies in your package.json file and nodert will generate the listed modules for you!
Running nodert install without specifying the modules/namespaces will result with the nodert tool installing the list of modules that specified in the package.json file under the "_nodert/modules" path.
For example, having the following section in your package.json will result with the installation of the "windows.devices.geolocation" and "windows.devices.sensors" modules:
```json
...
"_nodert" : {
"modules" : [
"windows.devices.geolocation",
"windows.device.sensors"
]
},
...
```