raw javascript
npm install river-stringraw javascript
```
const raw = " Score: 85% ";
const score = Math.round(parseInt(raw.replace('Score: ', '').replace('%', ''), 10) * 1.1);
river way
``
const score = s(" Score: 85% ")
.replace('Score: ', '')
.replace('%', '')
.toNumber()
.multiply(1.1)
.round()
.value();
need node version 25 to work properly the glob
``
npm run test
manually run
``
npx tsx --test src/*/.test.ts
npx tsx demo.ts
```
/src
/logic
string-logic.ts <-- All string methods (toPascal, shout, etc.)
number-logic.ts <-- new math methods (add, multiply, round)
/types
types.ts <-- TypeScript interfaces for String and Number flows
core.ts <-- The "River" Proxy factory
index.ts <-- Entry point (export s)