Novice Prime Minister

    @os33/rev-path

    1.0.0 • Public • Published

    rev-path Build Status

    Create a revved file path

    Install

    $ npm install --save rev-path
    

    Usage

    var revPath = require('rev-path');
    var hash = 'bb9d8fe615'
    
    var path = revPath('src/unicorn.png', hash);
    //=> 'src/unicorn-bb9d8fe615.png'
    
    revPath('src/unicorn.png', Date.now());
    //=> 'src/unicorn-1432309925925.png'
    
    // you can also revert an already hashed path
    revPath.revert(path, hash);
    //=> 'src/unicorn.png'

    Related

    • rev-file - Get the revved file path of a file

    License

    MIT © Sindre Sorhus

    Install

    npm i @os33/rev-path

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • jiansongos33
    • roger_os33