المشاريع
عرض على GitHub
jrainlau/canjs
حول
CanJS is a javascript interpreter, which can run JS code in JS.
لغات البرمجة وبيئات التشغيلالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل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
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…