Skip to main content

Built and signed on GitHub Actions

Plaintext file format parser and writer (Cellular automaton)

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
6 days ago (0.3.0)

Plaintext file format parser and writer

Example

import { parsePlaintext } from "@ca-ts/plaintext"
import { assertEquals } from "@std/assert";

assertEquals(
  parsePlaintext(`!Name: Glider
!
.O.
..O
OOO`),
  {
    description: [
      "!Name: Glider",
      "!",
    ],
    pattern: [
      [0, 1, 0],
      [0, 0, 1],
      [1, 1, 1],
    ],
    size: {
      width: 3,
      height: 3,
    },
  },
);

Reference

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @ca-ts/plaintext

Import symbol

import * as mod from "@ca-ts/plaintext/";

Add Package

npx jsr add @ca-ts/plaintext

Import symbol

import * as mod from "@ca-ts/plaintext/";

Add Package

yarn dlx jsr add @ca-ts/plaintext

Import symbol

import * as mod from "@ca-ts/plaintext/";

Add Package

pnpm dlx jsr add @ca-ts/plaintext

Import symbol

import * as mod from "@ca-ts/plaintext/";

Add Package

bunx jsr add @ca-ts/plaintext

Import symbol

import * as mod from "@ca-ts/plaintext/";