Nested Parenthetical Madness
    Wondering what’s next for npm?Check out our public roadmap! »

    @architect/package

    6.2.0 • Public • Published

    @architect/package GitHub CI status

    @architect/package packages @architect projects as AWS::Serverless-compatible JSON. Converts Architect projects into a AWS Serverless Application Model (SAM)-compatible format.

    Install

    npm i @architect/package
    

    API

    All of this module's methods take as input an @architect/inventory-parsed Architect project.

    pkg(arc)

    Example Usage

    let parse = require('@architect/parser')
    let pkg = require('@architect/package')
    
    // fake out an .arc file as a string
    let arcString = `
    @app
    mybasicapp
    
    @http
    get /
    `
    
    // parse .arc string into a plain javascript object
    let arc = parse(arcString)
    
    // export as sam
    let sam = pkg(arc)
    console.log(sam)

    Keywords

    none

    Install

    npm i @architect/package

    DownloadsWeekly Downloads

    748

    Version

    6.2.0

    License

    Apache-2.0

    Unpacked Size

    57.2 kB

    Total Files

    30

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar