# @ryniaubenpm/alias-pariatur-iusto

> [NPM](https://www.npmjs.com/org/alterior) | [Github](https://github.com/ryniaubenpm/alias-pariatur-iusto) | [API reference](https://alterior-mvc.github.io/alterior/index.html?) | [Changelog](CHANGELOG.md)

Latest version **1.0.0** (published 2024-04-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ryniaubenpm/alias-pariatur-iusto
pnpm add @ryniaubenpm/alias-pariatur-iusto
yarn add @ryniaubenpm/alias-pariatur-iusto
bun add @ryniaubenpm/alias-pariatur-iusto
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-04-25 |
| First published | 2024-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 26 |
| Unpacked size | 25.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ryniaube |
| Maintainers | mi762136 |
| Keywords | style, read, package manager, rapid, URLSearchParams, gradients css, trimRight, JSON, tools, accessor, core-js, ES2017, ecmascript, eventEmitter, toStringTag, shebang, sanitization, typed, side, mimetypes, debugger, directory, deep-copy, ES8, call-bound, user-streams, commander, values, events, TypeBox, emoji, full, tostringtag, matchAll, TypedArray, setImmediate, status, format, callback, popmotion, mime-db, function, flatMap, value, command, encryption, wordbreak, call-bind, weakset, ESnext, wget, metadata, immer, make, plugin, rangeerror, ES2021, escape, readable, ECMAScript 5, toobject, waapi, curl, Object.defineProperty, ascii, weakmap, throttle, descriptors, dataview, CSS, fullwidth, scheme, typeof, json-schema, Uint8Array, is, request, duplex, folder, prototype, mkdirs, runtime, BigInt64Array, let, helpers, listeners, remove, dom, StyleSheet, ECMAScript 6, colors, toSorted, jsonschema, performance, compare, buffer, phone, jQuery, up, [[Prototype]], ArrayBuffer.prototype.slice, east-asian-width, last, data, Array.prototype.findLast, Stream, chinese, browserlist, es6, symbols, quote, linewrap, offset, $.extend, point-free, resolve, Object.getPrototypeOf, mime, l10n, setPrototypeOf, parent, promise, jsx, lazy, iterate, drop, bootstrap less, symbol, names, spinners, fast-clone, open, arguments, watcher, typedarrays, trim, callbind, push, libphonenumber, zod, pose, prefix, invariant, fast-copy, superagent, syntaxerror, enumerable, code points, animation, linux, native, jsdom, descriptor, safe, nodejs, redux, rmdir, serialization, from, opens, regexp, flatten, lru, tester, Object.fromEntries, omit, less.js, dependency manager, urls, traverse, regular, shrinkwrap, deepcopy, symlink, cli, autoprefixer, class-validator, argv, Float32Array, date, macos, express, bluebird, walk, handlers, flags, terminal, less css, properties, type, proto, reduce, xdg-open, css less, flag, toArray, RegExp.prototype.flags, rgb, fast-deep-clone, cjk, JSON-Schema, Underscore, rm -rf, framework, bundling, require, superstruct, testing, react-testing-library, rate, multi-package, gradients css3, app, map, process, installer, persistent, sanitize, utils, find, lockfile, assign, Object.entries, starter, mixins, forEach, RegExp#flags, private data, telephone, array, json-schema-validator, less compiler, tap, transpile, ECMAScript 2022, curried, classes, Promise, a11y, coercible, css nesting, ECMAScript 2023, eslint, Array.prototype.includes, babel-core, argparse, performant, harmony, Symbol, form, xdg, getOwnPropertyDescriptor, delete, uuid, apollo, transpiler, picomatch, progress, tc39, json-schema-validation, start, argument, ie, args, yup, es-shims, styling, optimizer, url, zero, Observable, sorted, .env, copy, postcss, setter, dayjs, validator, character, deep, Push, typedarray, deepclone, fast-deep-copy, query, input, concatMap, ECMAScript 2020, stable, jasmine, hooks, property, Array.prototype.contains, inspect, get, Observables, matches, es5, framer, Object, rm, higher-order, touch, take, random, buffers, __proto__, byteOffset, negative, key, typescript, ast, sequence, tslib, hasOwn, eventDispatcher, preprocessor, es2018, Uint8ClampedArray, sameValueZero, create, spec, WebSocket, Function.prototype.name, exe, schema, client, functional, bdd, auth, irq, operating-system, joi, fastify, view, full-width, isConcatSpreadable, Rx, _.extend, inference, walking, install, dotenv, Array, consume, error, styleguide, ES5, robust, javascript, serializer, every, pyyaml, middleware, rfc4122, var, streams2, fetch, package.json, clone, regex, unicode, windows, protocol-buffers, chrome, default, Streams, Int16Array, electron, computed-types, getPrototypeOf, ES6, move, xterm, mobile, prune, width, ECMAScript 2021, YAML, deterministic, TypeScript, promises, jsdiff, compile less, symlinks, exec, util.inspect, speed, option, arraybuffer, CSSStyleDeclaration, crypt, String.prototype.matchAll, RFC-6455, fsevents, react, visual, arktype, es2015, batch, json, ponyfill, modules, ender, css, bundler, postcss-plugin, findup, stream, redux-toolkit, es7, characters, generics, validate, id, Array.prototype.flat, tty, AsyncIterator, fastcopy, patch, bound, ES2015, react-hooks, assertion, group, WeakMap, -0, queueMicrotask, debug, columns, findLastIndex, concurrency, byteLength, arrays, keys, module, figlet, structuredClone, efficient, emit, classnames, Map, internal, browserslist, ramda, gdpr, text, task, log, es8, stateless, validation, regular expression, define, interrupts, sigterm, Symbol.toStringTag, typanion, karma, look-up, slice, logging, concat, 256, uninstall, typed array, pipe, vest, ava, extend, Object.values, watching, stylesheet, launch, rm -fr, https, file, ECMAScript 7, break, which, env, asserts, streams, has, time, eslint-plugin, exit, codes, pretty, hookform, react-hook-form, dom-testing-library, io-ts, executable, dir, idle, spring, test, art, logger, yaml, less, warning, watch, console, estree, exit-code, redact, styled-components, Reflect.getPrototypeOf, sharedarraybuffer, lint, diff, Microsoft, circular, assert, indicator, Array.prototype.findLastIndex, awesomesauce, website, config, mkdirp, lesscss, environment, extension, search, moment, ansi, jwt, intrinsic, glob, es2016, includes, set, npm, call, banner, forms, contains, datastructure, equal, util, es-shim API, typesafe, censor, es, dataView, accessibility, ES2022, eslintplugin, recursive, ReactiveExtensions, qs, ES2023, minimal, shared, equality, authentication, fast, extra, css-in-js, ES2018, pure, channel |

## Links

- npm: https://www.npmjs.com/package/@ryniaubenpm/alias-pariatur-iusto
- Repository: https://github.com/ryniaubenpm/alias-pariatur-iusto
- Homepage: https://github.com/ryniaubenpm/alias-pariatur-iusto/#readme
- Issues: https://github.com/ryniaubenpm/alias-pariatur-iusto/issues
- npm.io page: https://npm.io/package/@ryniaubenpm/alias-pariatur-iusto

## Dependencies (26)

- [@ryniaubenpm/enim-error-numquam-et](https://npm.io/package/@ryniaubenpm/enim-error-numquam-et.md) ^1.0.0
- [@ryniaubenpm/ipsum-dolorem-ut-veniam](https://npm.io/package/@ryniaubenpm/ipsum-dolorem-ut-veniam.md) ^1.0.0
- [@ryniaubenpm/facere-dolorem-inventore](https://npm.io/package/@ryniaubenpm/facere-dolorem-inventore.md) ^1.0.0
- [@zibuthe7j11/accusantium-fugit-dolores](https://npm.io/package/@zibuthe7j11/accusantium-fugit-dolores.md) ^1.0.0
- [@ryniaubenpm/beatae-quos-enim-inventore](https://npm.io/package/@ryniaubenpm/beatae-quos-enim-inventore.md) ^1.0.0
- [@ryniaubenpm/nulla-quisquam-quos-dolorem](https://npm.io/package/@ryniaubenpm/nulla-quisquam-quos-dolorem.md) ^1.0.0
- [@ryniaubenpm/distinctio-quas-aperiam-sint](https://npm.io/package/@ryniaubenpm/distinctio-quas-aperiam-sint.md) ^1.0.0
- [@ryniaubenpm/iste-debitis-molestiae-dicta](https://npm.io/package/@ryniaubenpm/iste-debitis-molestiae-dicta.md) ^1.0.0
- [@ryniaubenpm/maxime-modi-molestiae-veniam](https://npm.io/package/@ryniaubenpm/maxime-modi-molestiae-veniam.md) ^1.0.0
- [@ryniaubenpm/nam-libero-reiciendis-facere](https://npm.io/package/@ryniaubenpm/nam-libero-reiciendis-facere.md) ^1.0.0
- [@ryniaubenpm/architecto-atque-voluptatibus](https://npm.io/package/@ryniaubenpm/architecto-atque-voluptatibus.md) ^1.0.0
- [@ryniaubenpm/delectus-doloribus-ullam-quam](https://npm.io/package/@ryniaubenpm/delectus-doloribus-ullam-quam.md) ^1.0.0
- [@ryniaubenpm/nobis-debitis-quidem-repellat](https://npm.io/package/@ryniaubenpm/nobis-debitis-quidem-repellat.md) ^1.0.0
- [@ryniaubenpm/possimus-vel-culpa-laudantium](https://npm.io/package/@ryniaubenpm/possimus-vel-culpa-laudantium.md) ^1.0.0
- [@ryniaubenpm/sequi-ipsum-dolores-doloribus](https://npm.io/package/@ryniaubenpm/sequi-ipsum-dolores-doloribus.md) ^1.0.0
- [@ryniaubenpm/tempore-ullam-cupiditate-velit](https://npm.io/package/@ryniaubenpm/tempore-ullam-cupiditate-velit.md) ^1.0.0
- [@ryniaubenpm/et-quas-recusandae-voluptatibus](https://npm.io/package/@ryniaubenpm/et-quas-recusandae-voluptatibus.md) ^1.0.0
- [@ryniaubenpm/eum-dolore-consectetur-suscipit](https://npm.io/package/@ryniaubenpm/eum-dolore-consectetur-suscipit.md) ^1.0.0
- [@ryniaubenpm/deserunt-dignissimos-cum-impedit](https://npm.io/package/@ryniaubenpm/deserunt-dignissimos-cum-impedit.md) ^1.0.0
- [@ryniaubenpm/neque-repellendus-dolores-minima](https://npm.io/package/@ryniaubenpm/neque-repellendus-dolores-minima.md) ^1.0.0
- [@ryniaubenpm/cum-explicabo-nesciunt-voluptates](https://npm.io/package/@ryniaubenpm/cum-explicabo-nesciunt-voluptates.md) ^1.0.0
- [@ryniaubenpm/ad-voluptatibus-aspernatur-numquam](https://npm.io/package/@ryniaubenpm/ad-voluptatibus-aspernatur-numquam.md) ^1.0.0
- [@ryniaubenpm/voluptate-natus-corrupti-reiciendis](https://npm.io/package/@ryniaubenpm/voluptate-natus-corrupti-reiciendis.md) ^1.0.0
- [@ryniaubenpm/asperiores-veniam-dignissimos-veniam](https://npm.io/package/@ryniaubenpm/asperiores-veniam-dignissimos-veniam.md) ^1.0.0
- [@ryniaubenpm/laboriosam-iusto-adipisci-voluptatum](https://npm.io/package/@ryniaubenpm/laboriosam-iusto-adipisci-voluptatum.md) ^1.0.0
- [@ryniaubenpm/nulla-reprehenderit-officia-pariatur](https://npm.io/package/@ryniaubenpm/nulla-reprehenderit-officia-pariatur.md) ^1.0.0

## Alternatives

- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2024-04-25

## README

# ![Alterior](./logo.svg) [![CircleCI](https://circleci.com/gh/ryniaubenpm/alias-pariatur-iusto/tree/main.svg?style=shield)](https://circleci.com/gh/ryniaubenpm/alias-pariatur-iusto/tree/main) [![Join the chat at https://gitter.im/alterior-mvc/Lobby](https://badges.gitter.im/alterior-core/Lobby.svg)](https://gitter.im/alterior-mvc/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ![License](https://img.shields.io/npm/l/@alterior/runtime.svg) [![npm](https://img.shields.io/npm/v/@alterior/runtime)](https://alterior-mvc.github.io/alterior/index.html?)

[NPM](https://www.npmjs.com/org/alterior) | [Github](https://github.com/ryniaubenpm/alias-pariatur-iusto) | [API reference](https://alterior-mvc.github.io/alterior/index.html?) | [Changelog](CHANGELOG.md)

A framework for building well-structured applications and isomorphic libraries in Typescript.

# Overview

Alterior is an isomorphic framework for building service-oriented applications composed of executable modules which participate in dependency injection and declare 
components. 

Alterior's Modules are well-defined units of execution which have a defined lifecycle, 
and respond to standardized lifecycle events. This makes them suitable for use as a 
primary vehicle for top-level general purpose code, such as a server or even a desktop 
application. 

## Class Libraries

Alterior strives to provide a strong isomorphic base class library that fills 
the gaps between ECMAScript and larger BCLs like Java or .NET. In service of 
this, Alterior ships low-level libraries for handling decorators/annotations, 
errors and error base classes, dependency injection, an HTTP client, and more. 

# Getting Started

Alterior is **not just a REST framework**, but that's certainly it's most common usage.

```typescript
import '@alterior/platform-nodejs';
import { WebService, Get, WebServerEngine } from '@alterior/web-server';
import { Application } from '@alterior/runtime';
import { ExpressEngine } from '@alterior/express';

WebServerEngine.default = ExpressEngine;

@WebService()
export class MyWebService {
    @Get('/service-info')
    info() {
      return { 
        service: 'my-web-service' 
      };
    }
}

Application.bootstrap(MyWebService);
```

For more information on building web services with Alterior, see [@alterior/web-server](packages/web-server/README.md).

## Consuming your web service

A web service built with Alterior can be consumed on the client transparently. This is an example of a [Transparent Service](https://github.com/ryniaubenpm/alias-pariatur-iusto/wiki/TransparentServicesPlanning)

```typescript
import { MyWebService } from '@example/my-backend';
import { Component } from '@angular/core';

@Component({ selector: 'my-component', ... })
export class MyComponent {
  constructor(
    private service : MyWebService
  ) {
  }

  onButtonClicked() {
    let serviceInfo = await this.service.info();
    console.log(serviceInfo);
    // { service: 'my-web-service' }
  }
}
```

Transparent services are not limited to being used in Angular. The simplest way to consume a service on the frontend is to create it using Service.bootstrap()

```typescript
import { Service } from '@alterior/runtime';
import { MyWebService } from '@example/my-backend';

let service = Service.bootstrap(MyWebService);
```

## Creating a project

Start by installing the Alterior command line tooling:

```
npm install @alterior/cli -g
```

Then you can generate a new Alterior service:

```
alt new service my-web-service
```

A new folder called `my-web-service` will be created containing a fully formed Alterior project. To start the service, enter the new folder and call

```
npm start
```

To publish the project to NPM for use in your frontend, use

```
npm publish
```

Alterior automatically handles everything needed to build and publish your application, including removing your actual backend code if you have asked for that.

## Do I have to use the CLI?

You can build an Alterior project using `tsc` (or any other Typescript compiler) if you wish, but not all of Alterior's features will be available. Transparent Services in particular are enabled via the Alterior CLI build process, so much of the benefits of that feature would be unavailable without additional work.

Additionally, Alterior's builtin build process emits runtime type reflection information for all elements, even when there are no decorators present. Typescript itself only emits type metadata for decorated elements, so you may have to add decorators where there are none are needed when Alterior is built by its own CLI. 

If you choose not to use Alterior CLI's build step, you may want to use the [ttypescript](https://github.com/cevek/ttypescript) frontend instead of `tsc` and add a transform for emitting all type metadata. The one that Alterior uses is currently built-in to `@alterior/cli`, but we plan to roll it out as a standalone transformer in the near future.

# Mechanics

Alterior is not just for building REST services. Here's a minimal single file example of an application that is something other than a `@WebService`.

```typescript
import 'reflect-metadata';
import { Module, OnInit, AppOptions, Application } from '@alterior/runtime';

@Module()
export class AppModule implements OnInit {
    public altOnInit() {
        console.log('Hello world!');
    }
}

Application.bootstrap(AppModule);
```

This becomes useful because Alterior modules can participate in dependency injection and builtin lifecycle management functionality. A class decorated with `@WebService()` is also considered an `@Module()`.

### Dependency Injection

Bootstrapped classes can participate in dependency injection. 

```typescript
import 'reflect-metadata';
import { Module, OnInit, AppOptions, Application } from '@alterior/runtime';
import { Injectable } from '@alterior/di';

@Injectable()
export class WorldService {
  theWorld() {
    return 'world';
  }
}

@Injectable()
export class HelloService {
  constructor(
    private world : WorldService
  ) {
  }

  sayHello() {
    return `hello, ${this.world.theWorld()}`;
  }
}

@Module()
export class AppModule implements OnInit {
    constructor(
      private hello : HelloService
    ) {
    }

    public altOnInit() {
        console.log(this.hello.sayHello());
    }
}

Application.bootstrap(AppModule);
```

### Lifecycle Management

Modules can have any of the following lifecycle methods which act as hooks for running custom behaviors

- **`altOnInit()`** Called when the module is bootstrapped. Implement the `OnInit` interface when using this lifecycle method. 
- **`altOnStart()`** Called when the overall application is started. Implement the `OnStart` interface when using this lifecycle method.
- **`altOnStop()`** Called when the overall application is stopped before exiting. Implement the `OnStop` interface when using this lifecycle method.
- **`RolesService`** The notion of "roles" is used to allow a module to define or react to a certain class of functionality being started or stopped. For instance `@/web-server` adds a `web-server` role which can be enabled or disabled at configuration time to control whether the web server portion of the application is enabled or disabled. Similarly `@/tasks` adds a `task-worker` role. By default all roles 
are started when the application starts. This can be used to start only a specific portion of an application in a particular environment, for instance having the web server and task worker roles started in development, but splitting these into separate tiers in production.

For more information about lifecycle management, see [the Roles section of the @/runtime documentation](packages/runtime/README.md#roles).

# Packages
Alterior consists of the following individual NPM packages. You can pull in 
packages as you need them.

- **[@alterior/annotations](packages/annotations/README.md)** A system for decorating and introspecting standardized metadata on programmatic elements in Typescript  
  
- **[@ryniaubenpm/alias-pariatur-iusto](packages/common/README.md)** Provides many smaller quality-of-life utilities which can save you
time while you build your applications.  

- **[@alterior/command-line](packages/command-line/README.md)** Command line arguments handling  

- **[@alterior/cli](packages/cli/README.md)** The Alterior CLI tool  

- **[@alterior/di](packages/di/README.md)** Provides a flexible Angular-style dependency injection framework based on `injection-js`  

- **[@alterior/http](packages/http/README.md)** HTTP client library as an Alterior module (ported from `@angular/http`)  
  
- **[@alterior/logging](packages/logging/README.md)** A logging library which supports pluggable listeners and context-tracked logging using `Zone.js`  

- **[@alterior/platform-angular](packages/platform-angular/README.md)** Provides support for loading Alterior modules into an Angular app, including the ability to access Alterior injectable services from Angular components and services. Use this to consume isomorphic libraries from within frontend apps written in Angular.

- **[@alterior/platform-nodejs](packages/platform-nodejs/README.md)** Provides support for bootstrapping an Alterior application within the Node.js server environment.  

- **[@alterior/rtti](packages/rtti/README.md)** A Typescript transformer for emitting comprehensive runtime type information (RTTI)

- **[@alterior/runtime](packages/runtime/README.md)** An module-based dependency injection and lifecycle event system similar to that of Angular, suitable for use in Alterior libraries and applications.  

- **[@alterior/tasks](packages/tasks/README.md)** A system for enqueuing and processing tasks using Redis as it's backing store (based on `bull` queue)

- **[@alterior/web-server](packages/web-server/README.md)** A system for building RESTful web services declaratively using classes & decorators

## Compatibility

### Using Alterior modules in Angular

You can use any browser-compatible Alterior module in Angular by using  
`@alterior/platform-angular`:

```typescript
import { AngularPlatform } from '@alterior/angular-platform';
import { MyAlteriorModule, MyAlteriorService } from '@my/alterior-module';

@NgModule({
  providers: [
    AngularPlatform.bridge(
      MyAlteriorModule,
      // ...
    )
  ]
})
export class AppModule {
  constructor(
    someAlteriorService : MyAlteriorService
  ) {
    console.log(`The following service was injected from an Alterior module:`);
    console.log(someAlteriorService);
  }
}
```

For more about using Alterior modules in Angular, see [@alterior/platform-angular](packages/platform-angular/README.md).

---
_Source: https://npm.io/package/@ryniaubenpm/alias-pariatur-iusto · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
