Newly Purchased Memories
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    aws-publisherpublic

    aws-publisher

    install

    $ npm install aws-publisher

    usage

    aws-publisher let you upload files within a directory to your amazon s3 bucket.

    • it only uploads new or modified files to your bucket.
    • it sets a far expiry date and zip files
    Publisher = require 'aws-publisher'
     
    # create s3 publisher 
    publisher = new Publisher bucket: 'name',  key: 'xx'secret: 'xx'
     
    # define filter closure that will only select js, png, and css file 
    filter = (f, stat) -> stat.isDirectory() or /\.(js|png|css)$/.test f
     
    # publish 'public' dir to root folder '' of the  bucket 
    publisher.publishDir {origin: 'public'dest: ''filter}cb
     

    Keywords

    none

    install

    npm i aws-publisher

    Downloadslast 7 days

    278

    version

    0.0.4

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar