
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Keen IO NodeJS module. Keen IO is a hosted API to collect, analyze, and visualize your data.
Keen IO is an online service to collect, analyze, and visualize your data.
Use npm to install!
`npm install keen.io`
var keen = require('keen.io');
// Configure instance. Only projectId and writeKey are required to send data.
var keen = keen.configure({
projectId: "<project_id>",
writeKey: "<write_key>",
readKey: "<read_key>",
masterKey: "<master_key>"
});
You can also have multiple instances if you are connecting to multiple KeenIO accounts in the one project (probably edge case).
var keen = require('keen.io');
// Configure instance with API Key
var keen1 = keen.configure({...});
var keen2 = keen.configure({...});
In the future there will be the ability to pass options into the initialisation such as batching inserts, etc. The structure of this hasn't been defined yet but will look something like the following.
var keen = require('keen.io');
// Configure instance with API Key and options
var keen = keen.configure({
projectId: "<project_id>",
batchEventInserts: 30
});
var keen = require("keen.io");
var keen = keen.configure({
projectId: "<project_id>",
writeKey: "<write_key>"
});
// send single event to Keen IO
keen.addEvent("my event collection", {"property name": "property value"}, function(err, res) {
if (err) {
console.log("Oh no, an error!");
} else {
console.log("Hooray, it worked!");
}
});
// send multiple events to Keen IO
keen.addEvents({
"my first event collection": [{"property name": "property value"}, ...],
"my second event collection": [{"property name2": "property value 2"}]
}, function(err, res) {
if (err) {
console.log("Oh no, an error!");
} else {
console.log("Hooray, it worked!");
}
});
var keen = require("keen.io");
var apiKey = "YOUR_API_KEY";
var scopedKey = keen.encryptScopedKey(apiKey, {
"allowed_operations": ["read"],
"filters": [{
"property_name": "account.id",
"operator": "eq",
"property_value": "123"
}]
});
var keen = keen.configure({
projectId: "<project_id>";
readKey: scopedKey
});
Future module updates are planned to introduce the remaining API calls. You can see some of the spec for that in examples/queries.js. Also, as mentioned above, specifying options when creating an instance to configure the behaviour of the instance (ie, batching event submissions).
This is an open source project and we love involvement from the community! Hit us up with pull requests and issues.
The aim is to build up this module to completely represent the API provided by Keen IO, which is quite extensive. The more contributions the better!
Keen IO - API Technical Reference
Licensed under the MIT license.
FAQs
Keen IO NodeJS module. Keen IO is a hosted API to collect, analyze, and visualize your data.
The npm package keen.io receives a total of 255 weekly downloads. As such, keen.io popularity was classified as not popular.
We found that keen.io 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.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.