MCPcopy
hub / github.com/sodiray/radash

github.com/sodiray/radash @v12.1.1 sqlite

repository ↗ · DeepWiki ↗ · release v12.1.1 ↗
484 symbols 785 edges 24 files 0 documented · 0%
README

Radash

:loud_sound: /raw-dash/

<img src="https://github.com/rayepps/radash/raw/master/banner.png" alt="radash" width="100%" style="border-radius:4px" />

Functional utility library - modern, simple, typed, powerful

bundle size npm downloads npm version MIT license

Full Documentation

Install

yarn add radash

Usage

A very brief kitchen sink. See the full documentation here.

import * as _ from 'radash'

const gods = [{
  name: 'Ra',
  power: 'sun',
  rank: 100,
  culture: 'egypt'
}, {
  name: 'Loki',
  power: 'tricks',
  rank: 72,
  culture: 'norse'
}, {
  name: 'Zeus',
  power: 'lightning',
  rank: 96,
  culture: 'greek'
}]

_.max(gods, g => g.rank) // => ra
_.sum(gods, g => g.rank) // => 268
_.fork(gods, g => g.culture === 'norse') // => [[loki], [ra, zeus]]
_.sort(gods, g => g.rank) // => [ra, zeus, loki]
_.boil(gods, (a, b) => a.rank > b.rank ? a : b) // => ra

_.objectify(
  gods, 
  g => g.name.toLowerCase(), 
  g => _.pick(g, ['power', 'rank', 'culture'])
) // => { ra, zeus, loki }

const godName = _.get(gods, g => g[0].name)

const [err, god] = await _.try(api.gods.findByName)(godName)

const allGods = await _.map(gods, async ({ name }) => {
  return api.gods.findByName(name)
})

Contributing

Contributions are welcome and appreciated! Check out the contributing guide before you dive in.

Extension points exported contracts — how you extend this code

SomeDeclaredType (Interface)
(no doc)
src/tests/object.test.ts

Core symbols most depended-on inside this repo

defer
called by 8
src/async.ts
get
called by 5
src/object.ts
isNumber
called by 5
src/typed.ts
isNumber
called by 5
cdn/radash.js
get
called by 5
cdn/radash.js
isNumber
called by 5
cdn/radash.esm.js
get
called by 5
cdn/radash.esm.js
isFunction
called by 4
src/typed.ts

Shape

Function 463
Class 14
Method 6
Interface 1

Languages

TypeScript100%

Modules by API surface

cdn/radash.js110 symbols
cdn/radash.esm.js110 symbols
cdn/radash.min.js105 symbols
src/array.ts31 symbols
src/object.ts19 symbols
src/async.ts16 symbols
src/tests/curry.test.ts14 symbols
src/tests/async.test.ts14 symbols
src/curry.ts13 symbols
src/typed.ts12 symbols
src/string.ts8 symbols
src/series.ts8 symbols

Dependencies from manifests, versioned

@rollup/plugin-typescript10.0.1 · 1×
@types/chai4.3.3 · 1×
@types/jest28.1.1 · 1×
chai4.3.6 · 1×
chiller1.0.0-rc.30 · 1×
esbuild0.16.3 · 1×
jest28.1.3 · 1×
prettier2.7.1 · 1×
prettier-plugin-organize-imports3.0.3 · 1×
rollup3.2.5 · 1×
rollup-plugin-dts5.0.0 · 1×
rollup-plugin-esbuild5.0.0 · 1×

For agents

$ claude mcp add radash \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact