Nifty Procrastination Machine

    dns-serial

    1.0.1 • Public • Published

    dns-serial

    Generating a new DNS Serial Number and editing the current one with last change in ISO 8601 format

    Install

    $ npm install dns-serial
    // or
    $ yarn add dns-serial

    Import

    const serial = require("dns-serial");

    Usage

    // Get new serial
    serial(); // number: 2021071500
    
    // If it is today's date increase the number of changes, if not reset the number of changes and give the current date
    
    serial(2021071500); // number: 2021071501
    serial(1991012702); // number: 2021071500
    
    // Invalid serial
    serial(123); // number: 2021071500

    Install

    npm i dns-serial

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.9 kB

    Total Files

    4

    Last publish

    Collaborators

    • skorotkiewicz