# buddhism.js **Repository Path**: mirrors_mikeal/buddhism.js ## Basic Information - **Project Name**: buddhism.js - **Description**: Buddhist concepts as JavaScript - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-06 - **Last Updated**: 2025-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # buddhism.js Buddhist concepts as JavaScript ## Pratītyasamutpāda (Dependent Origination) Basic principals. ```js const a = (_this, that) => { if (_this) that() } const b = (that) => { const _this = false // vm knows this will never be called, this code can be dropped // and will never exist if (_this) that() } const c = (_this) => { const that = false // vm knows this will never be called, this code can be dropped // and will never exist if (that && _this) return _this } ``` ### Twelve-fold chain As a functional loop. ```js // Avijjā (Ignorance) const avijja = (...args) => sankhara(...args) // Saṅkhāra (Conditioning) const sankhara = (...args) => vinnana(...args) // Viññāṇa (Consciousness) const vinnana = (...args) => namarupa(...args) // Nāmarūpa (Name & Form) const namarupa = (...args) => salayatana(...args) // Saḷāyatana (Six Sense Bases) const salayatana = (...args) => phassa(...args) // Phassa (Contact) const phassa = (...args) => vedana(...args) // Vedanā (Sensation) const vedana = (...args) => tanha(...args) // Taṇhā (Craving) const tanha = (...args) => upadana(...args) // Upādāna (Clinging) const upadana = (...args) => bhava(...args) // Bhava (Being) const bhava = (...args) => jati(...args) // Jāti (Birth) const jati = (...args) => jaramarana(...args) // Jarāmaraṇa (Old Age & Death) const jaramarana = (...args) => avijja(...args) ```