NWS SDK for JavaScript
NWS SDK for JavaScript in the browser and Node.js
Este é o NWS SDK for JavaScript, disponível para browsers (breve), mobile devices (breve), ou Node.js no backends.
Instalando...
No Node.js
A maneira preferida de instalar o NWS SDK para Node.js é usando o npm package manager para Node.js. Basta digitar o simples comando em um terminal no seu sistema:
npm install nws-sdk
No Node.js
No arquivo JavaScript:
// Importar NWS SDK
var NWS = require('nws-sdk');
// usando o auth
var auth = new NWS.Auth();
auth.me().then(function (me) {
console.info(me);
});
License
This SDK is distributed under the Apache License, Version 2.0, see LICENSE.txt and NOTICE.txt for more information.