
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
headlight-client
Advanced tools
The headlight-client library is an SDK for interacting with [Headlight](http://headlightiq.com/)
The headlight-client library is an SDK for interacting with Headlight
It contains the following resources:
HTML API Documentation | /docs |
Browserify es6 bundle | /dist/headlight-bundle |
NodeJS Typescript Client | /node |
AngularJS Typescript Client | /angularjs |
Angular6 Typescript Client | /angular6 |
Unit tests | /node/test |
Setup your project for typescript.
Then install this package:
npm install headlight-client
Create an example.ts script file:
import * as Headlight from 'headlight-client';
const _ServerURL = 'https://headlightqa.paviasystems.com';
const _UserName = 'user';
const _Password = 'password123';
async function main()
{
var client = new Headlight.Client(_ServerURL);
let session = await client.login(_UserName, _Password);
let userApi = client.API(Headlight.API.UserApi);
let record = await userApi.read(client.UserSession.UserID);
console.log(`My name is ${record.NameFirst} ${record.NameLast}`);
}
main();
Execute your script with:
ts-node example.ts
Just include the headlight-bundle.min.js file in your html document. You can then reference the client under the "Headlight" namespace.
<html>
<head>
<script src="headlight-bundle.min.js"></script>
</head>
<body>
<script type="text/javascript">
var client = new Headlight.Client("https://headlightqa.paviasystems.com");
client.login("user", "password123")
.then((session) => {
console.log(session);
});
</script>
</body>
</html>
bower.json
{
...
"dependencies": {
"headlight-client": "https://github.com/paviasystems/headlight-client.git"
},
"overrides": {
"headlight-client": {
"main": [
"dist/headlight-bundle.min.js"
]
}
}
FAQs
The headlight-client library is an SDK for interacting with [Headlight](http://headlightiq.com/)
The npm package headlight-client receives a total of 60 weekly downloads. As such, headlight-client popularity was classified as not popular.
We found that headlight-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.