Socket
Socket
Sign inDemoInstall

create-stack-info

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-stack-info

returns a schema for a stack as needed by no-stack


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

stack-info

returns a schema for an application stack. Used by NoStack.

codecov Version Downloads/week License

Geenee Template

What

A tool for specifying a schema for the data needs of an application. Exports a schema type. Useful for templates for NoStack applications, and for some templates that provide front end code for showing or using dynamic data.

WARNING: still under construction.

Usage

First, install the package:

npm i stack-info

Here is a sample usage:

const stack-info = require('stack-info')

API

async function stackInfo: Schema (settings: NsInfo, config: Configuration)
  • The settings parameter is a NsInfo as exposed in magicalstrings. It is the settings for a given code base generated by a template.
  • The configuration is aConfiguration type from cogs-box. The template has the configuration, which specifies what is necessary for the settings.

The output is a Schema type. Following are the keys for a Schema:

  topSource: string;
  userClasses: UserClasses;
  sources: Sources;
  types: Types;
  actions: ActionsByActionType;
  backend?: BackendData;
  context?: ContextSupport;

For more details, check out the interface in the code.

Keywords

FAQs

Package last updated on 20 May 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