
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
rune-decoder
Advanced tools
A simple JavaScript libary for decoding runes.
Still in Beta and may have some bugs and may have breaking API changes in future
Install directly from the repo:
yarn add https://github.com/clams-tech/rune-decoder
npm i https://github.com/clams-tech/rune-decoder
Using the decode method you can get a similar result to that of passing a rune to the Core Lightning Decode method:
import { decode } from 'decode-rune'
const rune =
'aTEhoWOAllxYDgWSUyGPEKVeUwr-MG_Il1HXZis1MYs9NCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl'
const decoded = decode(rune)
console.log(decoded)
// {
// id: '4',
// hash: '693121a16380965c580e059253218f10a55e530aff30ffc89751d7662b35318b',
// restrictions: [
// {
// alternatives: ['method^list', 'method^get', 'method=summary'],
// summary: 'method starts with list OR method starts with get OR method is equal to summary'
// },
// {
// alternatives: ['method/listdatastore'],
// summary: 'method is not equal to listdatastore'
// }
// ]
// }
If a rune is invalid, null
will be returned.
FAQs
Decode runes
The npm package rune-decoder receives a total of 2 weekly downloads. As such, rune-decoder popularity was classified as not popular.
We found that rune-decoder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.