@codraft/core
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Codraft/core

@codraft/canvas로 작성한 코드를 실행하세요. 브라우저와 Node.js 모든 환경에서 작동합니다.

설치

npm install @codraft/core

Node.js

import { Runner } from '@codraft/core'

Browser (umd)

<script src="https://cdn.jsdelivr.net/npm/@codraft/core@latest/dist/umd/index.min.js"></script>
const { Runner } = Codraft

Browser (esnext)

import { Runner } from 'https://cdn.jsdelivr.net/npm/@codraft/core@latest/dist/esm/index.min.js'

사용법

@codraft/core을 실행하기 위해선 두 가지 정보가 필요합니다.

명령어

사용된 모든 명령어가 필요합니다.

저장 데이터

@codraft/canvas에서 save 함수로 얻어올 수 있습니다.

import { Runner } from '@codraft/core'

const runner = new Runner(eventCommands, conditionCommands, actionCommands, saveData)

runner.init() // 코드를 실행합니다.

Readme

Keywords

none

Package Sidebar

Install

npm i @codraft/core

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

33.5 kB

Total Files

8

Last publish

Collaborators

  • izure1