Giter Club home page Giter Club logo

chronver-original's Introduction

ChronVer

Chronologic Versioning, because we're in the future.

Notes

  • This module has some sharp corners and is not ready for primetime yet. You have been warned.

Usage

import * as chronver from "https://deno.land/x/chronver/mod.ts";

chronver.valid("1.2.3");       // false
chronver.valid("v0000.00.00"); // false
chronver.valid("0000.00.00");  // true
chronver.valid("1970.01.01");  // true
chronver.valid("1970.01.01-alpha.10.beta+build.unicorn.rainbow");  // true
new chronver.ChronVer("0000.00.00", { initialize: true }).version; // "2022.09.26" (the current date in ChronVer format)
# WIP
deno run --allow-read cli.ts

Versions

A "version" is described by the 2019.05.19 specification found at https://chronver.org.

Test

You will need to first download this repo, cd into it, and install Deno before proceeding further.

# lint all TypeScript files
deno lint

# type-check file
deno check cli.ts
deno check mod.ts
deno check test.ts

# run the tests in `test.ts`
deno test

chronver-original's People

Contributors

netopwibby avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.