@zhexin/srs
v0.0.2
Published
[](https://jsr.io/@zhexin/srs)
Downloads
432
Readme
srs-ts
Installation
from jsr
# Node.js
npx jsr add @zhexin/srs
yarn add jsr:@zhexin/srs
pnpm add jsr:@zhexin/srs
# Deno
deno add jsr:@zhexin/srs
# Bun
bunx jsr add @zhexin/srsfrom npm
write @jsr:registry=https://npm.jsr.io into .npmrc, then
npm add @zhexin/srs
yarn add @zhexin/srs
pnpm add @zhexin/srs
bun add @zhexin/srsQuick Start
import { readSrs, writeSrs } from "@zhexin/srs";
const file = await Deno.open("geosite-cn.srs");
const ruleSet = await readSrs(file.readable);
const output = writeSrs(ruleSet);
await Deno.writeFile("output.srs", output);License
MIT
