Registry / devops / compiler

compiler

JSON →
library0.1.2jsnpmunverified

A web compile tool (v0.1.2) for building pipelines of compilation tasks. It provides a plugin-based architecture where processing steps (e.g., transpilation, minification) are chained in a pipeline. Unlike monolithic build tools, it focuses solely on orchestrating compilers. Released as a minimal Node.js package with no stable release cadence; current version is pre-1.0. It differentiates by being lightweight and extensible via custom plugins.

npm install compiler
INSTALL
IMPORT
SIG · COMPILER
C
compiler
devopsjavascriptv0.1.2
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.

Compiler
import Compiler from 'compiler'
const Compiler = require('compiler')
Default import is ESM-style; default export is a class.
createCompiler
import { createCompiler } from 'compiler'
import createCompiler from 'compiler'
Named export for factory function.
Plugin
import type { Plugin } from 'compiler'
import { Plugin } from 'compiler'
Plugin is a type/interface; use type-only import.

Basic pipeline usage: create a Compiler instance, add plugins via .use(), then run inputs through the pipeline.

import Compiler from 'compiler'; const compiler = new Compiler(); compiler.use(input => input.toUpperCase()); compiler.use(input => input + '!'); const result = compiler.run('hello'); console.log(result); // 'HELLO!'
Debug
Known issues
gotchaPlugin order matters; plugins are executed in the order they are added.
fix
Ensure .use() calls are in the desired sequence.
affects: >=0.0.0
breakingIn v0.1.0, the plugin signature changed from (input, next) to (input) only, breaking existing custom plugins.
fix
Update plugins to accept only input and return transformed string.
affects: >=0.1.0 <0.1.0
Errors
Common errors & fixes
TypeError: compiler.use is not a function
Using default import incorrectly (CommonJS require instead of default import).
fix
Use import Compiler from 'compiler' or const Compiler = require('compiler').default;
Error: Plugin must be a function
Passing non-function to .use().
fix
Ensure each argument to .use() is a function that takes input and returns output.
Upgrade
Version history
0.1.2latest on npm
Audit
Dependencies
noderequiredRuntime requirement
Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
compiler — npm install compiler · libregistry