gematria calculator (Ordinal, Sumerian, Chaldean, Primes, etc.)
npm install ciphers-gematriabash
npm install ciphers-gematria
or with yarn
yarn add ciphers-gematria
`
⚡ Quick start
`javascript
import { ciphers } from 'ciphers-gematria'; // ESM
const gematria = require('ciphers-gematria'); // CJS
const result = ciphers("hello"); // ESM
const result = gematria.ciphers("hello"); // CJS
console.log(result);
// Output:
{
Ordinal: 52,
Reduction: 25,
ReverseOrdinal: 83,
ReverseReduction: 20,
Standard: 133,
Latin: 103,
Sumerian: 312,
ReverseSumerian: 498,
CapitalsMixed: 104,
CapitalsAdded: 52,
ReverseCapsMixed: 166,
ReverseCapsAdded: 83,
ReverseStandard: 650,
Satanic: 227,
ReverseSatanic: 258,
SingleReduction: 25,
KvException: 25,
SkvException: 25,
ReverseSingleReduction: 29,
EpException: 38,
EhpException: 47,
Primes: 151,
Trigonal: 327,
Squares: 602,
Fibonacci: 458,
ReversePrimes: 277,
ReverseTrigonal: 761,
ReverseSquares: 1439,
Chaldean: 23,
Septenary: 17,
Keypad: 23
}
`
---
Calculate a single cipher
$3
♻️ Only the imported cipher will be included in your final bundle.
`javascript
import { sumerian, latin, chaldean } from 'ciphers-gematria';
console.log(sumerian('hello')); // 312
console.log(chaldean('hello')); // 23
`
$3
`javascript
const gematria = require('ciphers-gematria');
console.log(gematria.latin('hello')); // 103
console.log(gematria.chaldean('hello')); // 23
`
---
🛠️ Create a custom cipher
createCipher is a function:
it returns a new cipher function based on a custom letter-value table.
$3
`javascript
import { createCipher } from 'ciphers-gematria';
const mySpecialTable = {
A: 251, B: 101, C: 45, D:150 ...... Z:42
};
const myCustomCipher = createCipher(mySpecialTable);
console.log(myCustomCipher('hello'));
`
$3
`javascript
const gematria = require('ciphers-gematria');
const mySpecialTable = {
A: 251, B: 101, C: 45, D:150 ...... Z:42
};
const myCustomCipher = gematria.createCipher(mySpecialTable);
console.log(myCustomCipher('hello'));
``
| Ordinal | Reduction | Reverse | Reverse Reduction |
| Standard | Latin | Sumerian | Reverse Sumerian |
| Capitals Mixed | Capitals Added | Reverse Capitals Mixed | Reverse Capitals Added |
| Reverse Standard | Satanic | Reverse Satanic | Single Reduction |
| Kv Exception | Skv Exception | Reverse Single Reduction | Ep Exception |
| Ehp Exception | Primes | Trigonal | Squares |
| Fibonacci | Reverse Primes | Reverse Trigonal | Reverse Squares |
| Chaldean | Septenary | Keypad |