Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hash-expander

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hash-expander

Turns short Git SHA-1s into their longer counterpart.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Hash Expander

Hash expander turns short Git SHA-1s into their longer counterpart. Might be useful for other things, too.

Usage

var hashes = [
    "eb99c3097f97ec7b4e36458fdcc8892b01caa118",
    "c29b26c4f8e5aa69d8c168dbb63f190758cc2983",
    "6c49956d2686abee298d56b46cec0c4e95b535be",
    "6c3f685f17c3531a78647fe97650fcd08d30149b",
    "b3cda2c4ca3efe3340dc0b676cb3404d27b830af",
    "74e8963bbea1c9a076b6e76897f509b57e227d39",
    "fab1eda19d2af1685438bbb3fefa4e25f7d7db94",
    "33d99e7e7c1e2984cca3584058d6f4607b36070e",
    "d8207b83fdbb93f157706c1aad22e7ad006ea55d",
    // …
]
var expand = require("hash-expander")(hashes);
expand("eb99");    // "eb99c3097f97ec7b4e36458fdcc8892b01caa118"
expand("c29b26c"); // "c29b26c4f8e5aa69d8c168dbb63f190758cc2983"
// etc.

Know issues

Currently only handles ASCII input and hashes.

License

Apache License, Version 2.0

Keywords

FAQs

Package last updated on 28 Aug 2014

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