New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@windingtree/org.id-utils

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@windingtree/org.id-utils

Shared ORGiD utilities

  • 1.0.0-beta.22
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

@windingtree/org.id-utils

@windingtree/org.id-utils

Shared ORGiD utilities

Setup

npm install @windingtree/org.id-utils

Usage

simpleUid(length)

Creates a unique Id. Length is an optional parameter with a value from 5 to 11.

import {
  uid: {
    simpleUid
  }
} from '@windingtree/org.id-utils';

const id = simpleUid(8); // => 'erdhk9if'

Regular expressions

RegExp collection for some validation cases

import { regexp } from '@windingtree/org.id-utils';

console.log(Object.keys(regexp));
/*
[
  phone,
  uri,
  uriHttp,
  email,
  isoDate,
  ethereumAddress,
  bitcoinAddress,
  blockchainAccountId,
  blockchainAccountIdGrouped,
  X25519,          // <-- X25519 pub key
  secp256k1,       // <-- secp256k1 pub key
  bytes32,
  swift,
  iban,
  ipfs,
  ipfsCidV0,
  ipfsCidV1Base32,
  ipfsCidV1Base58btc
]
*/

HTTP response codes

HTTP-related constants and utilities

import {
  http: {
    HTTP_STATUS,
    HTTP_STATUS_CODES,
    HTTP_METHODS
  }
} from '@windingtree/org.id-utils';

console.log(HTTP_STATUS_CODES);
/*
{
  OK: 200,
  BAD_REQUEST: 400,
  UNAUTHORIZED: 401,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  METHOD_NOT_ALLOWED: 405,
  INTERNAL_SERVER_ERROR: 500,
  NOT_IMPLEMENTED: 501,
  BAD_GATEWAY: 502,
  SERVICE_UNAVAILABLE: 503
}
*/

Documentation

Generated docs

TODO

  • Create types definitions for grouped regexps

Keywords

FAQs

Package last updated on 16 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc