Nighttime Peanut Migrations
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    file-expirespublic

    File expires

    Get a notification when a file expires or changes.

    Example

    var createFileExpirer = require('./')
     
    var file = createFileExpirer('https://github.com/favicon.ico')
     
    var content
     
    file.on('expires', function() {
      console.log('expired')
      file.readFile(function(err, c) {
        content = c
      })
    })
     
    file.on('change', function() {
      console.log('changed')
    })
     
     
    file.readFile(function(err, c) {
      content = c
    })
     

    Install

    npm install file-expires
    

    Licence

    MIT

    Keywords

    none

    install

    npm i file-expires

    Downloadslast 7 days

    6

    version

    0.1.1

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar