All Projects → jrainlau → Canjs

jrainlau / Canjs

Licence: mit
CanJS is a javascript interpreter, which can run JS code in JS.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Canjs

Gulp Front
Frontend boilerplate and framework based on gulp, pug, stylus and babel
Stars: ✭ 237 (-10.9%)
Mutual labels:  frontend
Mogwai
The minimalist, obvious, graphical, web application interface
Stars: ✭ 249 (-6.39%)
Mutual labels:  frontend
Mega Interview Guide
The MEGA interview guide, JavaSciript, Front End, Comp Sci
Stars: ✭ 255 (-4.14%)
Mutual labels:  frontend
Kedge
kEdge - Kubernetes Edge Proxy for gRPC and HTTP Microservices
Stars: ✭ 244 (-8.27%)
Mutual labels:  frontend
Checklist
📋 A Frontend Checklist for Websites
Stars: ✭ 248 (-6.77%)
Mutual labels:  frontend
Inesita
Frontend web application framework in Ruby using Opal.
Stars: ✭ 253 (-4.89%)
Mutual labels:  frontend
Rfs
✩ Automates responsive resizing ✩
Stars: ✭ 2,789 (+948.5%)
Mutual labels:  frontend
Fe Interview
🔥🔥🔥 前端面试,独有前端面试题详解,前端面试刷题必备,1000+前端面试真题,Html、Css、JavaScript、Vue、React、Node、TypeScript、Webpack、算法、网络与安全、浏览器
Stars: ✭ 4,435 (+1567.29%)
Mutual labels:  frontend
Prism
Build frontend web apps with Ruby and WebAssembly
Stars: ✭ 251 (-5.64%)
Mutual labels:  frontend
Vue
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
Stars: ✭ 191,421 (+71862.78%)
Mutual labels:  frontend
Full Stack Fastapi Couchbase
Full stack, modern web application generator. Using FastAPI, Couchbase as database, Docker, automatic HTTPS and more.
Stars: ✭ 243 (-8.65%)
Mutual labels:  frontend
Free Programming Resources
💎 免费的编程资源大全,持续更新!🔥 覆盖各种语言和方向(Java \ Python \ C++ \ JavaScript \ Golang \ 前端 \ 后端等)的学习路线、贴心教程、项目实战、编程书籍、面试合集、实用资源等,对程序员非常有帮助!
Stars: ✭ 225 (-15.41%)
Mutual labels:  frontend
Front End Checklist
🗂 The perfect Front-End Checklist for modern websites and meticulous developers
Stars: ✭ 57,386 (+21473.68%)
Mutual labels:  frontend
Project Based Learning Frontend
List of Project based Tutorials for frontend development
Stars: ✭ 240 (-9.77%)
Mutual labels:  frontend
Qmlcore
QML to Javascript/HTML5 translator, both for mobile and desktop targets
Stars: ✭ 258 (-3.01%)
Mutual labels:  frontend
Shunter
A Node.js application built to read JSON and translate it into HTML
Stars: ✭ 236 (-11.28%)
Mutual labels:  frontend
Fe Cookbook
HTML/CSS & JavaScript, Web and related. 前端手册
Stars: ✭ 252 (-5.26%)
Mutual labels:  frontend
Mac Setup
🛠️ Front end web development setup for macOS.
Stars: ✭ 265 (-0.38%)
Mutual labels:  frontend
Ellipsed
A JavaScript library for multilined ellipsis
Stars: ✭ 261 (-1.88%)
Mutual labels:  frontend
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
Stars: ✭ 179,407 (+67346.24%)
Mutual labels:  frontend

CanJS

CanJS is a javascript interpreter, which can run JS code in JS.

Relate article: 《 前端与编译原理——用JS写一个JS解释器》

Install

git clone https://github.com/jrainlau/canjs.git

Usage

It's fine to run the JS code in string directly.

const Canjs = require('./dist/index.js')

new Canjs(`
  console.log('Hello World!')
`).run()

CanJS uses ES5 standard library, but you can also provide custom variables to it:

const Canjs = require('./dist/index.js')

const wx = {
  name: 'wx'
}

new Canjs(`
  console.log(wx.name)
`, { wx }).run()

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].