
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
**Hash function package** for hashing id's ( in positive integer ) to an alphanumeric short string using a 6 bit map ( User can also prvide thier own Custom 6 bit map )
Hash function package for hashing id's ( in positive integer ) to an alphanumeric short string using a 6 bit map ( User can also prvide thier own Custom 6 bit map )
I built this to solve the problem of getting short hash for numbers ( i was making a link shortner )
This is Made Using TypeScript and Node.js
npm install 6bithash
pnpm add 6bithash
Then, you can import the hash function as :
import { generateHash } from '6bithash';
or
const { generateHash } = require('6bithash');
The custom hash function must have key as 6bit integers and value as you want as a string.
Example:
import { generateHash } from '6bithash';
myMap = {
"000000" : "u",
...
...
"111111" : "o",
}
const Number = 1001;
const result = generateHash(Number,{myMap});
Example:
Javascript :
const result = generateHash(959492);
console.log(result); // result = dQqe
TypeScript :
const result:string = generateHash(959492);
console.log(result); // result = dQqe
6bithash
├── dist
│ └── index.d.mts
│ └── index.d.ts
│ └── index.js
│ └── index.mjs
├── src
│ └── customMap.ts
│ └── index.ts
│ └── types.ts
├── tests
│ └── index.test.ts
├── .gitignore
├── License
├── pnpm-lock.yaml
├── package.json
├── jest.config.json
├── Readme.md
└── tsconfig.json
└── tsup.config.json
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
**Hash function package** for hashing id's ( in positive integer ) to an alphanumeric short string using a 6 bit map ( User can also prvide thier own Custom 6 bit map )
We found that 6bithash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.