https://github.com/skorotkiewicz/dns-serial
Generating a new DNS Serial Number and editing the current one with last change in ISO 8601 format
https://github.com/skorotkiewicz/dns-serial
dns edit generate iso8601 serial
Last synced: 3 months ago
JSON representation
Generating a new DNS Serial Number and editing the current one with last change in ISO 8601 format
- Host: GitHub
- URL: https://github.com/skorotkiewicz/dns-serial
- Owner: skorotkiewicz
- Created: 2021-07-15T19:13:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-17T00:24:10.000Z (almost 4 years ago)
- Last Synced: 2025-03-01T04:49:21.524Z (4 months ago)
- Topics: dns, edit, generate, iso8601, serial
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dns-serial
> Generating a new DNS Serial Number and editing the current one with last change in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format
## Install
```sh
$ npm install dns-serial
// or
$ yarn add dns-serial
```## Import
```javascript
const serial = require("dns-serial");
```## Usage
```javascript
// 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 dateserial(2021071500); // number: 2021071501
serial(1991012702); // number: 2021071500// Invalid serial
serial(123); // number: 2021071500
```