Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

atma-io-middleware-base

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atma-io-middleware-base

Atma IO middleware abstraction

latest
Source
npmnpm
Version
1.0.51
Version published
Maintainers
1
Created
Source

Atma IO Middleware Abstraction

Helper util to create atma-io middlewares

Extends:

For usage examples refer to:

API

create
var { create } = require('atma-io-middleware-base');
create({
    name: 'my-super-middleware',
    process (content: string, filename: string, options: string) {
        return { content: string, sourceMap: string };
    }
    processAsync (content: string, filename: string, options: string) {
        return Promise.resolve({content: string, sourceMap: string});
    }
})

options can be extended then via package.json. Example:

{

    "settings": {
        "%middleware-name%": {
            "foo": "baz"
        }
    }

}

_ 2017 (c) MIT License - Atma.js Project_

FAQs

Package last updated on 16 Jul 2024

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