GithubHelp home page GithubHelp logo

opportunitylivetv / node-libuuid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samgiles/node-libuuid

1.0 3.0 1.0 8 KB

Node binding to libuuid

License: Other

JavaScript 38.79% Python 11.07% C++ 50.14%

node-libuuid's Introduction

Node libuuid

Simple node binding to the native libuuid implementation.

Install

npm install node-libuuid

Node Version support

v1.0 Supports older versions of Node - pre version 4. v2.0 From this version newer versions of Node are supported.

API

libuuid.v1()

Generate and return a time based UUID.

Returns the string form of the UUID.

libuuid.v4()

Generate and return a secure random UUID (see uuid_generate_random(3))

Returns the string form of the UUID.

Benchmarks

Run npm run-script bench

Currently it compares just against node-uuid.

node-libuuid#generate_random x 5,501,355 ops/sec ±1.32% (100 runs sampled)
node-uuid#v4 x 201,565 ops/sec ±2.84% (84 runs sampled)
Fastest is node-libuuid#generate_random

node-libuuid#v1 x 5,434,475 ops/sec ±1.85% (97 runs sampled)
node-uuid#v1 x 1,028,694 ops/sec ±1.91% (94 runs sampled)
Fastest is node-libuuid#v1

Reporting Errors

Please include operating system and version and libuuid install status.

License Info

Samuel Giles, GPLv2.

node-libuuid's People

Contributors

samgiles avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

martina6hall

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.