0.1.0-alpha.4 • Published 1 year ago

@mobiusz/security v0.1.0-alpha.4

Weekly downloads
-
License
GPL-3.0+
Repository
-
Last release
1 year ago

lerna

Donate

paypal

Description

@mobiusz/core is the core module, as its name suggests, for the whole Möb:üsz ecosystem to work. It provides types that are used - and to be used - in the modules that belong to other framework's namespaces:

  • @mobiuszobviously.
  • @vuoz the namespace for packages that implement GUI components and functions.
  • @pipeline the namespace for packages that handles the Pipeline dataflow programming system.
  • @mmmap that bundles all this together to provide application and server.

Install

With yarn (recommended)

yarn add @mobiusz/core

With npm

npm install @mobiusz/core

Structure

@mobiusz/core provides basic types, models and abstract classes to be used or implemented. The main purpose of these is to propose a common language to make community development and discussion easier.

Implementations

Few concrete functionalities are already implemented in this module:

IdGenerator

Generates unique ids thanks to the nanoid package. It is widely used in the Möb:üsz ecosystem to quickly provide unique ids with the less collision possible.

class IdGenerator implements UniqueIdGeneratorPort
  • Dependencies: nanoid (bundled with the package)
  • Purpose: Generates unique ids according to an user-defined length of the id to produce.
  • Usage: ìmport { IdGenerator } from '@mobiusz/core

Contributors

Author

Benoît Lahoz

License

MIT