
Colorless echo JavaScript kit
The project aims to develop a JavaScript module framework that is simple to use with some interesting features. 本計畫目標是建立一個簡單上手的 JavaScript 程式庫架構。
<script type="text/JavaScript" src="path/to/ce.js">
// { "run" : "module name or callback" }
</script>
// Insert from browser console
var cejs_node = document.createElement("script");
cejs_node.setAttribute('src', 'https://kanasimi.github.io/CeJS/ce.js');
cejs_node.setAttribute('type', 'text/javascript');
document.head.appendChild(cejs_node);
if (!window.CeL) window.CeL = { initializer : function() { CeL.run('interact.DOM', initialization); } };
function initialization() {}
// CeL.run( 'module.name', function callback() { /* ... */ } );
CeL.run([ 'data.math', 'application.debug.log' ], function() {
CeL.assert([ CeL.GCD(4, 6), 2 ]);
});
npm 安裝的可能不是最新版本,這裡示範的是最新版本的安裝方法。
不囉嗦,已經做過的步驟可以跳過:
-
下載 GitHub repository 安裝檔 GitHub.updater.node.js
-
在命令行界面下,進到 GitHub repository 安裝檔(
GitHub.updater.node.js)所在的目錄,執行命令以下載 CeJS 程式庫:node GitHub.updater.node.js
-
CeJS 程式庫應該已經解壓縮,並且放在安裝檔所在目錄的 CeJS-master 目錄下,可以開始試用:
node
// or: require('./CeJS-master/_for include/node.loader.js'); require('./_CeL.loader.nodejs.js'); var cejs = require("cejs"); CeL.run([ 'data.math', 'application.debug.log' ]); CeL.assert([ CeL.GCD(4, 6), 2 ]);
-
每次要更新到最新 CeJS 程式庫時,只要重新執行一次 GitHub repository 安裝檔即可。
- First, go to nodejs.org, download the runtime environment and install the node.js package. 請先安裝 node.js。
- Then, install the CeJS library: 接著安裝 CeJS library:
$ npm install cejs
- 請注意:採用
npm安裝的可能不是最新版,尚未加入最新功能。建議下載最新版本壓縮檔,解開後配置;而不是直接執行npm install安裝舊版的程式庫。
鑒於更新頻繁,有些功能可能最新版本才具備;若是執行的程式採用了新功能,將會發生嚴重錯誤。此時您可直接到 GitHub 下載最新版本壓縮檔,解開後配置。
Since the frequent updates of the code, some features may work at the latest version only; it’s recommended download the latest version at GitHub, and then configure the library.
For using the alpha version of CeJS, you can set { "dependencies": {"cejs": "github:kanasimi/cejs"}} in the package.json, or use a setup script:
-
Install node.js, wget/curl and 7-Zip. e.g.,
yum -y install nodejs wget p7zip
-
fetch CeJS updater script. e.g.,
cd /tmp mkdir CeJS && cd CeJS wget "https://raw.githubusercontent.com/kanasimi/gh-updater/master/GitHub.updater.node.js" || curl -O https://raw.githubusercontent.com/kanasimi/gh-updater/master/GitHub.updater.node.js # This script will download + extract CeJS library at ./CeJS-master. node GitHub.updater.node.js
-
See GitHub.updater.node.js for automatic updating configuration.
-
Copy the loader file,
_CeL.loader.nodejs.jsto the target directory (e.g., the same as the script file). -
Create the repository_path_list_file,
_repository_path_list.txtin the same directory. -
Set the path list to search the library base: Write to the repository_path_list_file (
_repository_path_list.txt), one path per line. -
to use in a script file:
//global.use_cejs_mudule = true; require('./_CeL.loader.nodejs.js');
- Copy all codes of _CeL.loader.nodejs.js to the front of the script.
- Set the CeL_path_list to the paths to search the library base, split by ‘|’. See also node.demo.js.
Let’s try it:
$ node
// Load CeJS library.
require('cejs');
// Load modules.
// CeL.run( 'module.name', function callback() { /* ... */ } );
CeL.run([ 'data.math', 'application.debug.log' ]);
// Running codes.
CeL.assert(CeL.GCD(48, 64) === 16);
CeL.assert([ "2³⋅13⋅80611⋅82217",
CeL.factorize(689269837048).toString() ], 'factorize');
For further introduction, please see the wiki. 進一步介紹請參閱本計畫之 wiki。
Live demo: 紀年轉換工具.
直式四則運算 (elementary arithmetic),即直式加減乘除、長除法。
See compatibility.js and native.js.
- The live demo page usually takes 10 to 20 seconds to load.
- 由於頻寬不足,加上載入時須做初始化,本功能示範頁面在載入時得稍微等一下。

- GitHub Pages 在線演示。
- 本 library 須使用新一點的瀏覽器/執行環境。
- 本 library 將使用到 global 變數
CeL。
詳細請參閱概念介紹頁。
Contact us at GitHub.
(This document is written by GitHub Flavored Markdown.)
数据统计
数据评估
关于kanasimi CeJS 纪年转换工具特别声明
本站安逸导航提供的kanasimi CeJS 纪年转换工具都来源于网络,不保证外部链接的准确性和完整性,同时,对于该外部链接的指向,不由安逸导航实际控制,在08/14/2026 12:44收录时,该网页上的内容,都属于合规合法,后期网页的内容如出现违规,可以直接联系网站管理员进行删除,安逸导航不承担任何责任。
相关导航

一个界面即可查看所有内容:Universal Viewer 是一款可扩展、可嵌入的开源应用程序,用于显示图像、多媒体、文档和 3D 模型。
文言 wenyan-lang
文言文編程語言 A programming language for the ancient Chinese.
Universal Viewer
Universal Viewer (UV) 是一个由社区开发的开源项目。我们的使命是帮助您与世界分享您的内容。
wenyan-book《文言陰符》
文言陰符 An Introduction to Programming in Wenyan Language
Open Library
Open Library is an open, editable library catalog, building towards a web page for every book ever published.
文言 / wenyan-lang
文言(或称wenyan)是一种深奥的编程语言,它严格遵循中国古典文学的语法和语调。此外,文言的字母表仅包含繁体汉字和引语,因此保证古代中国人能够阅读。您也可以在在线编辑器「」上试用,下载编译器,或查看源代码。
BookReader
Internet Archive BookReader 用于在线查看 Internet Archive 中的书籍,也可用于查看其他书籍。
Dezoomify
Dezoomify可以从在线可缩放图像界面提取完整的高分辨率图像。它支持来自多个不同网站的多种可缩放图像工具(参见下方列表)。它以可缩放图像的 URL 作为输入,并输出可供下载的图像(右键单击图像,然后选择“图像另存为... ”)。
暂无评论...


