@dao/codex-mock2@0.1.0
latest
Works with
•JSR Score82%•It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




Published7 months ago (0.1.0)
@dao/codex-mock2
codex/mock2 atomic package for the Daobox Codex ecosystem.
Features
- 🚀 TypeScript First: Written in TypeScript with full type safety
- 📦 Zero Dependencies: Lightweight and self-contained
- 🌐 Cross-Runtime: Works in Deno, Node.js, Bun, and browsers
- 📖 Well Documented: Complete JSDoc documentation
Installation
JSR (Recommended)
# Deno deno add @dao/codex-mock2 # Bun bun add @dao/codex-mock2@jsr # Node.js (with JSR CLI) npx jsr add @dao/codex-mock2 # Node.js (manual) npm install @jsr/dao__codex-mock2
Import
// JSR import { codex/mock2 } from "@dao/codex-mock2"; // npm (Node.js) import { codex/mock2 } from "@jsr/dao__codex-mock2";
Usage
Basic Example
import { codex/mock2 } from "@dao/codex-mock2"; const result = codex/mock2(); console.log(result); // "Hello from codex/mock2!"
Advanced Usage
// Add your advanced usage examples here import { codex/mock2 } from "@dao/codex-mock2"; // Example with custom parameters const customResult = codex/mock2(); console.log(customResult);
API Reference
codex/mock2()
Main exported function for codex/mock2.
Returns: string - A greeting message
Example:
const result = codex/mock2(); console.log(result); // "Hello from codex/mock2!"
Development
Prerequisites
Scripts
# Install dependencies bun install # Run tests bun test # Type check bun run typecheck # Publish to JSR bun run publish:jsr
Project Structure
. ├── src/ │ └── index.ts # Main module ├── tests/ │ └── index.test.ts # Test suite ├── jsr.json # JSR configuration ├── package.json # Package configuration ├── tsconfig.json # TypeScript configuration ├── README.md # This file └── LICENSE # MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Related Projects
- DAO Codex - Main repository
- Atomic Workflow - Workflow system
Made with ❤️ by the DAO team
Add Package
deno add jsr:@dao/codex-mock2
Import symbol
import * as codex_mock_ from "@dao/codex-mock2";
Import directly with a jsr specifier
import * as codex_mock_ from "jsr:@dao/codex-mock2";
Add Package
pnpm i jsr:@dao/codex-mock2
pnpm dlx jsr add @dao/codex-mock2
Import symbol
import * as codex_mock_ from "@dao/codex-mock2";
Add Package
yarn add jsr:@dao/codex-mock2
yarn dlx jsr add @dao/codex-mock2
Import symbol
import * as codex_mock_ from "@dao/codex-mock2";
Add Package
vlt install jsr:@dao/codex-mock2
Import symbol
import * as codex_mock_ from "@dao/codex-mock2";
Add Package
npx jsr add @dao/codex-mock2
Import symbol
import * as codex_mock_ from "@dao/codex-mock2";
Add Package
bunx jsr add @dao/codex-mock2
Import symbol
import * as codex_mock_ from "@dao/codex-mock2";