Skip to content

Commit 48f27b7

Browse files
sipemuclaude
andcommitted
Change npm package name to @sipemu/anofox-statistics
- Update workflow to publish as scoped package - Update README with scoped package name in examples - Consistent with @sipemu/anofox-regression naming Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c0342e6 commit 48f27b7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Update package.json for npm
3636
run: |
3737
cd crates/anofox-statistics-js/pkg
38-
jq '.name = "anofox-statistics" | .homepage = "https://github.com/sipemu/anofox-statistics-rs" | .keywords += ["t-test", "shapiro-wilk", "anova", "mann-whitney", "wilcoxon", "chi-squared", "webassembly"]' package.json > package.json.tmp
38+
jq '.name = "@sipemu/anofox-statistics" | .homepage = "https://github.com/sipemu/anofox-statistics-rs" | .keywords += ["t-test", "shapiro-wilk", "anova", "mann-whitney", "wilcoxon", "chi-squared", "webassembly"]' package.json > package.json.tmp
3939
mv package.json.tmp package.json
4040
4141
- name: Copy README

crates/anofox-statistics-js/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# anofox-statistics
1+
# @sipemu/anofox-statistics
22

33
A comprehensive statistical hypothesis testing library compiled to WebAssembly for JavaScript/TypeScript applications. All tests are validated against R.
44

55
## Installation
66

77
```bash
8-
npm install anofox-statistics
8+
npm install @sipemu/anofox-statistics
99
```
1010

1111
## Usage
@@ -21,7 +21,7 @@ import init, {
2121
JsTTestKind,
2222
JsAlternative,
2323
JsAnovaKind
24-
} from 'anofox-statistics';
24+
} from '@sipemu/anofox-statistics';
2525

2626
// Initialize the WASM module
2727
await init();
@@ -43,7 +43,7 @@ console.log(result);
4343
### Node.js
4444

4545
```javascript
46-
const { tTest, JsTTestKind, JsAlternative } = require('anofox-statistics');
46+
const { tTest, JsTTestKind, JsAlternative } = require('@sipemu/anofox-statistics');
4747

4848
// Use directly (WASM auto-initializes)
4949
const result = tTest(
@@ -167,7 +167,7 @@ enum JsMCSStatistic { Max, Range }
167167
### Normality Testing
168168

169169
```javascript
170-
import init, { shapiroWilk, andersonDarling } from 'anofox-statistics';
170+
import init, { shapiroWilk, andersonDarling } from '@sipemu/anofox-statistics';
171171

172172
await init();
173173

@@ -183,7 +183,7 @@ console.log(`Anderson-Darling: A=${ad.statistic.toFixed(4)}, p=${ad.p_value.toFi
183183
### ANOVA with Post-hoc
184184

185185
```javascript
186-
import init, { oneWayAnova, JsAnovaKind } from 'anofox-statistics';
186+
import init, { oneWayAnova, JsAnovaKind } from '@sipemu/anofox-statistics';
187187

188188
await init();
189189

@@ -201,7 +201,7 @@ console.log(`p-value: ${result.p_value.toFixed(6)}`);
201201
### Equivalence Testing (TOST)
202202

203203
```javascript
204-
import init, { tostTwoSample, JsAlternative } from 'anofox-statistics';
204+
import init, { tostTwoSample, JsAlternative } from '@sipemu/anofox-statistics';
205205

206206
await init();
207207

@@ -222,7 +222,7 @@ import init, {
222222
JsLossFunction,
223223
JsAlternative,
224224
JsVarEstimator
225-
} from 'anofox-statistics';
225+
} from '@sipemu/anofox-statistics';
226226

227227
await init();
228228

@@ -249,7 +249,7 @@ import init, {
249249
tTest,
250250
JsTTestKind,
251251
JsAlternative
252-
} from 'anofox-statistics';
252+
} from '@sipemu/anofox-statistics';
253253

254254
await init();
255255

0 commit comments

Comments
 (0)