Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
LinkHub
✓ var LinkHub = require('linkhub');
✗ import LinkHub from 'linkhub';
CJS-only; ESM not supported.
linkhub
✓ var linkhub = require('linkhub');
✗ const { LinkHub } = require('linkhub');
The package exports a single class, not an object.
LinkHubType
✓ var LinkHubType = require('linkhub').LinkHubType;
✗ import { LinkHubType } from 'linkhub';
LinkHubType is a property on the main export.
Initialize LinkHub with credentials and obtain an access token.
var LinkHub = require('linkhub');
var linkhub = new LinkHub({
linkID: process.env.LINK_ID || 'TESTER',
secretKey: process.env.SECRET_KEY || 'TESTER',
isTest: true
});
linkhub.getToken(30, function(err, token) {
if (err) console.error(err);
else console.log('Token:', token);
});
Errors
Common errors & fixes
Cannot find module 'linkhub'
Package not installed or typo in package name.
fixRun 'npm install linkhub' and verify package.json.
LinkHub is not a constructor
Incorrect import style, e.g., using named import instead of default.
fixUse 'var LinkHub = require('linkhub');'. Audit
Dependencies
No dependency data recorded yet.