Displaying 1 to 20 from 56 results

collect.js - 💎 Convenient and dependency free wrapper for working with arrays and objects

  •    Javascript

Using Laravel as your backend? Collect.js offers an (almost) identical api to Laravel Collections 5.5. See differences. All comparisons in collect.js are done using strict equality. Using loose equality comparisons are generally frowned upon in JavaScript. Laravel only performs "loose" comparisons by default and offer several "strict" comparison methods. These methods have not been implemented in collect.js because all methods are strict by default.

node-hat - Generate random IDs and avoid collisions.

  •    Javascript

Generate random IDs and avoid collisions.Generate a random ID string with bits of data in a base.

mongoose-unique-validator - mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema

  •    Javascript

mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema. This makes error handling much easier, since you will get a Mongoose validation error when you attempt to violate a unique constraint, rather than an E11000 error from MongoDB.

UUID.js - RFC-compliant UUID Generator for JavaScript

  •    Javascript

UUID.js is a JavaScript/ECMAScript library to generate RFC 4122 compliant Universally Unique IDentifiers (UUIDs). This library supports both version 4 UUIDs (UUIDs from random numbers) and version 1 UUIDs (time-based UUIDs), and provides an object-oriented interface to print a generated or parsed UUID in a variety of forms. Download src/uuid.js or call npm install uuidjs.




yeast - Tiny but linear growing unique id generator.

  •    Javascript

Yeast is a unique id generator. It has been primarily designed to generate a unique id which can be used for cache busting. A common practice for this is to use a timestamp, but there are couple of downsides when using timestamps.To keep the strings unique it will use the . char to separate the generated stamp from the seed.

tempy - Get a random temporary file or directory path

  •    Javascript

Get a temporary file path you can write to.You usually won't need either the extension or name option. Specify them only when actually needed.

unique-random - Generate random numbers that are consecutively unique

  •    Javascript

Useful for things like slideshows where you don't want to have the same slide twice in a row.Returns a function that when called will return a random number that is never the same as the previous.


unique-random-array - Get consecutively unique elements from an array

  •    Javascript

Useful for things like slideshows where you don't want to have the same slide twice in a row.Returns a function that when called will return a random element that's never the same as the previous.

unique-string - Generate a unique random string

  •    Javascript

Returns a 32 character unique string. Matches the length of MD5, which is unique enough for non-crypto purposes.

node-phonetic - Generates unique, pronounceable names, random and seedable

  •    Javascript

Just require it... Phonetic generates a randomized, pronounceable word. Use it to assign pronounceable hostnames to your server cluster so you don't have to refer to machines by random letters or numbers, or use it to suggest a unique username to your site's visitors. Keep the name the same every time by seeding it with a unique cookie, or maybe the user's IP + user agent.

chloride

  •    Javascript

Chloride is a Cryptography Library (Cl) for javascript enviroments.chloride is a compatibility layer that gives you bindings to libsodium when used in node.js, and either the libsodium-wrappers which is libsodium compiled to javascript via emscripten if performance is important but code size isn't. Or, if you are not doing many crypto operations, it uses tweetnacl, which is a handwritten port, and 1/10 the size of libsodium-wrappers.

objection-unique - Unique validation for Objection.js

  •    Javascript

This plugin adds a unique validation for Objection.js models.NOTE: Unique validation at update only works with $query methods.

ice-box - :snowflake: Create immutable directory pipelines.

  •    Javascript

Pure functions are a powerful concept. They allow you to, given an input, produce the same deterministic output, without side effects.Enter ice-box: a module that manages a store of uniquely-named, immutable directories, and makes it easy to create new ones.

adj-noun - Gives you a random adj-noun pair that you can use as a unique identifier

  •    Javascript

Gives you a random adj-noun pair that you can use as a unique identifier. Great for generating readable URLs.It randomly seeds between runs with Math.random().

level-create - insert a key if and only if it doesn't already exist

  •    Javascript

The first time this file is run with a username, it succeeds. The second time, the program fails because the username already exists.If multiple requests try to create a key at the same time, the first key obtains a lock that prevents other updates from succeeding.

node-nub - Uniqueness functions for node

  •    Javascript

Return all the unique elements of an array. You can specify your own uniqueness comparison function with nub.by too.These work like haskell's nub and nubBy functions in Data.List.