ngl.js
v1.0.5
Published
ngl.js is a class that interacts with https://ngl.link api's.
Downloads
17
Readme
ngl.js
ngl.js is a class that interacts with https://ngl.link api's.
To import using CJS:
var { NGL } = require('ngl.js');
var ngl = new NGL();
To import using MJS:
import { NGL } from 'ngl.js';
const ngl = new NGL();
USAGE:
This is an example on how to send a Message to someone:
import { NGL } from 'ngl.js';
const ngl = new NGL();
ngl.sendMessage('username', 'message');
This is an example on how to use proxies:
import { NGL } from 'ngl.js';
const ngl = new NGL({
host: 'example.proxy.com',
port: 8080,
auth: {
username: 'exampleuser',
password: 'examplepass'
}
});
ngl.sendMessage('username', 'message');