Nefarious Planetary Meddling
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    kerouac-parcel-appcastpublic

    kerouac-parcel-appcast

    This is middleware for Kerouac that generates Sparkle-compatible appcasts from Parcel package repositories.

    Applications can poll appcasts to check for the latest version, prompting users to update when a new version is available.

    Install

    $ npm install kerouac-parcel-appcast
    

    Install for development:

    $ git clone git@bitbucket.org:sifteo/kerouac-parcel-appcast.git
    $ cd kerouac-parcel-appcast
    $ npm link
    

    Usage

    To generate an appcast, use appcast middleware passing in a repository and query as arguments. In the example below, all versions of the package named "sync" for Mac OS X will be selected and placed as items in the appcast.

    Metadata about the appcast itself, including title and description is passed as a hash in the third argument.

    var appcast = require('kerouac-parcel-appcast');
    
    var repo = parcel.createRepository('repo.json');
    
    site.page('/sync/macosx.xml', appcast(repo, { name: 'sync', os: 'macosx' },
                                          { title: 'Sifteo Sync',
                                            description: 'The latest updates to Sifteo Sync.',
                                            packageLink: 'http://sifteo.com/download' }));
    

    License

    Apache License, Version 2.0

    Copyright (c) 2013 Sifteo Inc. <http://www.sifteo.com/>

    Keywords

    none

    install

    npm i kerouac-parcel-appcast

    Downloadsweekly downloads

    3

    version

    0.0.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar