Registry / devops / apMigStats

apMigStats

JSON →
library0.1.3jsnpmunverified

A migration analysis tool for app.aplynk.com that provides statistics on user component usage and task distribution. Version 0.1.3, stable but limited release. Key differentiators: focuses on migration metrics (users per component, tasks per user) and outputs results to JSON files. Requires Node ^6.3.0. Not actively maintained; alternatives like generic SQL/analytics tools may be more suitable.

npm install apMigStats
INSTALL
IMPORT
SIG · APMIGSTATS
A
apMigStats
devopsjavascriptv0.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

analyze
const ams = require('apMigStats'); ams.analyze();
import { analyze } from 'apMigStats';
Library is CommonJS-only; ESM imports will not work.
getNumberOfUsersPerComponentPair
const ams = require('apMigStats'); ams.getNumberOfUsersPerComponentPair();
ams.getNumberOfUsersPerComponentPair
All methods are called on the default export object.
getNumberTasksPerUser
const ams = require('apMigStats'); ams.getNumberTasksPerUser();
ams.getNumberTasksPerUser() // forgot parentheses
Methods must be invoked as functions.

Shows how to import the CommonJS module and call analyze() and other statistical methods for migration statistics.

const ams = require('apMigStats'); // Run all functions and save results to 'results' directory ams.analyze().then(() => { console.log('Migration stats generated.'); }).catch(err => { console.error('Error analyzing migration stats:', err); }); // Get number of users using a pair of components const pairUsers = ams.getNumberOfUsersPerComponentPair(); console.log('Users per component pair:', pairUsers); // Get number of tasks per user const tasksPerUser = ams.getNumberTasksPerUser(); console.log('Tasks per user:', tasksPerUser);
Debug
Known issues
deprecatedRequires Node ^6.3.0, which is end-of-life since 2019. May not work on current Node versions.
fix
Upgrade Node.js to a newer version or use a compatible runtime.
affects: >=0.1.0
gotchaLibrary uses CommonJS require only. Using ES6 import will throw an error.
fix
Use require() instead of import.
affects: >=0.1.0
breakingAsynchronous methods (like analyze) may not return promises in older versions; behavior undefined.
fix
Wrap in async function and use try-catch, or chain .then() if it returns a promise.
affects: 0.1.0 - 0.1.3
gotchaMethods return results directly without explicit documentation. Check return types before using.
fix
Inspect the source or run sample data to understand return structures.
affects: >=0.1.0
Errors
Common errors & fixes
TypeError: ams.analyze is not a function
Using ES6 import style instead of CommonJS require.
fix
Change to: const ams = require('apMigStats');
Error: Cannot find module 'apMigStats'
Library not installed or Node.js version mismatch (requires ^6.3.0).
fix
Run 'npm install apMigStats' and ensure Node version is >=6.3.0.
SyntaxError: Unexpected token import
Using import statement in a CommonJS environment or Node < 13.2.
fix
Use require() instead of import.
Upgrade
Version history
0.1.3latest on npm
Audit
Dependencies
nodeoptionalRequires Node.js version ^6.3.0
Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
apMigStats — npm install apMigStats · libregistry