Registry / serialization / sealang

sealang

JSON →
library1.0.5jsnpmunverified

SEALang is a superset of Perl5 with static typing, transpiled to Perl5 via Node.js. Version 1.0.5 (latest) is in early active development with a focus on adding static typing and modern features to Perl. It provides a schema API to generate Perl5 code for a compiler, but is not yet stable for production use. Key differentiators: brings static typing to Perl5, uses JavaScript/Node for tooling, and provides object-oriented primitives like Map, Array, Hash, and Scalar.

npm install sealang
INSTALL
IMPORT
SIG · SEALANG
S
sealang
serializationjavascriptv1.0.5
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.

SEASchema
const { SEASchema } = require('sealang');
import { SEASchema } from 'sealang'; // Not a standard ES module
Package uses CommonJS. Not available as ES module.
SEACompiler
const { SEACompiler } = require('sealang');
import SEACompiler from 'sealang';
Named export, not default. Use destructured require.
exportSEA
const { exportSEA } = require('sealang');
const exportSEA = require('sealang/export'); // Wrong path
Exported from main entry, not a subpath.

Creates a SEASchema, adds a routine, and compiles it to Perl5 code using SEACompiler.

const { SEASchema, SEACompiler } = require('sealang'); const schema = new SEASchema(); schema.addRoutine('hello', () => { console.log('Hello, SEALang!'); }); const compiler = new SEACompiler(schema); const perlCode = compiler.compile(); console.log(perlCode);
Debug
Known issues
gotchaPackage is in early development; API may break without major version bump.
fix
Pin to exact version and test upgrades thoroughly.
affects: >=0.0.0
breakingES module imports are not supported; only CommonJS require works.
fix
Use `const { ... } = require('sealang')` instead of `import`.
affects: >=1.0.0
gotchaDocumentation is sparse; source code may be the only reference for advanced usage.
fix
Read the GitHub source files for API details.
affects: >=1.0.0
deprecatedThe roadmap includes items marked as done but those features may still be unstable.
fix
Test each feature in isolation before relying on it.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'sealang'
Package not installed or module path incorrect.
fix
Run `npm install sealang` and ensure node_modules is in the correct directory.
TypeError: SEASchema is not a constructor
Importing SEASchema without destructuring (e.g., const SEASchema = require('sealang'))
fix
Use const { SEASchema } = require('sealang');
SyntaxError: Unexpected token 'export'
Attempting to import using ES module syntax in a CommonJS context.
fix
Use require() instead of import.
Upgrade
Version history
1.0.5latest on npm
Audit
Dependencies

No dependency data recorded yet.

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