Giter Site home page Giter Site logo

uuidgen-el's Introduction

MELPA

uuidgen-el

This is a naive implementation of RFC4122 Universally Unique IDentifier generation in elisp. Currently implemented are UUID v1 v3, v4 and v5 generation. The resolution of the time based UUID is microseconds, which is 10 times of the suggested 100-nanosecond resolution, but should be enough for general usage.

APIs

  • Function uuidgen-1

    Generate time based UUID string, aka UUIDv1.

  • Function uuidgen-4

    Generate UUID string form random numbers, aka UUIDv4.

  • Function uuidgen-3 (ns name)

    Generate name based UUID string using MD5 hash algorithm, aka UUIDv3. NS should be a generated UUID or predefined namespaces, uuidgen-ns-dns, uuidgen-ns-url, uuidgen-ns-oid, uuidgen-ns-x500. NAME is the node name string.

  • Function uuidgen-5 (ns name)

    Generate name based UUID string using SHA-1 hash algorithm, aka UUIDv5. NS should be a generated UUID or predefined namespaces, uuidgen-ns-dns, uuidgen-ns-url, uuidgen-ns-oid, uuidgen-ns-x500. NAME is the node name string.

  • Function uuidgen-urn (uuid)

    Return the string representation of a UUID as a URN.

  • Function uuidgen-cid (&optional uuid)

    Return UUID string in CID format that is suitable for COM definition. If UUID is nil will generate UUID-4 automatically. You customize uuidgen-cid-format-string to change the default format.

  • Command insert-uuid-cid (uuid)

    Insert UUID string in CID format that is suitable for COM definition. If UUID is nil will generate UUIDv4 automatically. You customize uuidgen-cid-format-string to change the default format.

  • Command uuidgen (time-based)

    Insert UUIDv4 at point. If TIME-BASED is non-nil, insert UUIDv1 instead.

uuidgen-el's People

Contributors

kanru avatar lemonbreezes avatar nhojb avatar shofetim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

uuidgen-el's Issues

string-as-unibyte is obsolete since 26.1

In uuidgen-3:
uuidgen.el:307:50:Warning: ‘string-as-unibyte’ is an obsolete function (as of
    26.1); use ‘encode-coding-string’.

In uuidgen-5:
uuidgen.el:315:51:Warning: ‘string-as-unibyte’ is an obsolete function (as of
    26.1); use ‘encode-coding-string’.

encode-coding-string is probably introduced at or before Emacs version 20.3, so we should be able to just replace string-as-unibyte.

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.