Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asclasit

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asclasit

ASync CLasses + ASync ITerators

  • 0.1.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
900
decreased by-15.25%
Maintainers
1
Weekly downloads
 
Created
Source

asclasit

ASync CLasses + ASync ITerators

Description

This is public-ready spin off from related internal experiments of ClAsync. Advantages of this module:

  • 100% test coverage;
  • More project files, less file sizes;
  • Thin: has no external dependency modules, only core essentials taken from ClAsync and improved;
  • Utilizes up-to-date Node.js features;
  • Targetting serverless/stateless environments;
  • Despite the missing documentation, test cases describe the usage.

Differences

There are architectural differences listed below:

Async Classes

ItemClAsyncAsClAsIt
Instance co-opDependency treeState isolation
Life cycleOnce (init->final)Muplitle (...->wake->sleep->...)
Lifetime Methodsinit(), final()(Async) Generator *[$]() depicting whole lifetime
Instance stateNon-configurable [$.inst]Configurable [$] via static [$]: options object or custom $.Inst subclass
Async EventsSpecial class (emitter.js)Automatic for each instance; methods of instance state [$]
Instance ShutdownSupported (via final)Not supported (global shutdown handler only for non-stateless environments)

(Async) Iterators

ItemClAsyncAsClAsIt
HelpersFunctions: $.<name>[Iter|Async](it, ...)Wrapped chain: $[.Iter|.AsIt|](it).<name>(...).<name>(...)
Extensible ClassesNot supportedSupported for sync ($.Iter) and async ($.AsIt) iterator classes

Testing

Tests and coverage powered by Jest

Thanks

Time Doctor

Keywords

FAQs

Package last updated on 07 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc