Registry / devops / node-appc

node-appc

JSON →
library1.1.7jsnpmunverified

node-appc is a common library for the Titanium SDK ecosystem, used by the Titanium CLI and Titanium SDK. Version 1.1.7 (latest) requires Node >=10.13. It provides a wide range of utilities including filesystem operation, async helpers, internationalization, image processing, plist handling, version comparison, and ZIP archiving. Many of its APIs are now legacy or replaced by newer packages (e.g., node-titanium-sdk, androidlib, ioslib). It is considered stable but in maintenance mode, with most active development happening in its replacements.

npm install node-appc
INSTALL
IMPORT
SIG · NODE-APPC
N
node-appc
devopsjavascriptv1.1.7
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.

appc
const appc = require('node-appc');
import appc from 'node-appc';
node-appc does not provide ES module exports; use CommonJS require() exclusively.
appc.fs
const appc = require('node-appc'); appc.fs.exists();
All utilities are accessed via the top-level appc object. There are no individual named exports.
appc.version
const appc = require('node-appc'); appc.version.gte('1.0.0');
import { version } from 'node-appc';
The version module is not a separate package; it is a property of the main export.

Demonstrates common require() usage and typical APIs: file system checks, plist parsing, version comparison, and async helpers.

const appc = require('node-appc'); // Check if a file exists const filePath = '/tmp/test.txt'; const exists = appc.fs.exists(filePath); console.log(`File exists: ${exists}`); // Parse a plist const plistContent = '<?xml version="1.0" encoding="UTF-8"?>\n<plist><dict><key>Foo</key><string>Bar</string></dict></plist>'; const plistObj = appc.plist.parse(plistContent); console.log('Plist parsed:', plistObj); // Compare semver versions const version = require('node-appc').version; const result = version.gte('3.0.0', '2.0.0'); console.log('3.0.0 >= 2.0.0:', result); // true // Async utilities const async = appc.async; async.series([ (next) => { setTimeout(() => { console.log('First'); next(); }, 100); }, (next) => { setTimeout(() => { console.log('Second'); next(); }, 50); } ], (err) => { console.log('Done'); });
Debug
Known issues
deprecatedThe 'android' and 'ios' APIs are deprecated. Use node-titanium-sdk, androidlib, or ioslib instead.
fix
Replace appc.android / appc.ios with the respective dedicated packages.
affects: >=1.0.0
gotchaNode-appc does not support ES module imports (import syntax). Using 'import' will cause a SyntaxError.
fix
Use CommonJS require('node-appc') instead.
affects: >=1.0.0
deprecatedThe 'timodule' and 'tiplugin' APIs are deprecated. Use node-titanium-sdk.
fix
Migrate to node-titanium-sdk for module/plugin management.
affects: >=1.0.0
gotchaSome APIs (e.g., 'haxm', 'clitools') are unused and may not work correctly.
fix
Avoid using these; check documentation for replacements.
affects: >=1.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module
Attempting to import the library via dynamic import() inside a CommonJS module, or using an outdated Node version that misdetects the module type.
fix
Ensure you are using Node >=10.13 and require('node-appc') synchronously. If using type: module in package.json, use createRequire.
TypeError: appc.fs.exists is not a function
The fs.exists method may have been removed or renamed in newer versions; check the actual API.
fix
Use fs.stat or fs.access from Node's built-in fs module directly.
Cannot find module 'node-appc'
The package is not installed or is in a different scope (e.g., @tidev/node-appc).
fix
Run npm install node-appc and verify the package name. It is not scoped.
Upgrade
Version history
1.1.7latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
node-appc — npm install node-appc · libregistry