- spdy web compiler swc is rust port of babel and closure compiler.
- ratel High performance JavaScript to JavaScript compiler with a Rust core
- RESS Rusty EcmaScript Scanner
- RESSA Rust EcmaScript Syntax Analyzer
- rjs An implementation of ECMAScript 5.1, in Rust. Work in progress.
- espadon EcmaScript parser writter in Rust (WIP)
- tyrion EcmaScript 6 parser written in Rust.
- esprit A JavaScript parser written in Rust
- j8t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const { fork } = require('child_process'); | |
const { join } = require('path'); | |
const count = process.argv[2] * limit; | |
// number of cores on your machine - 1 | |
// or whatever you want \_(*_*)_/ | |
const limit = 7; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = require('path'); | |
const code = '444'; | |
const filename = '00000'; | |
const content = 'abcdefghijklmnopqrstuvwxyz'; | |
const filePath = path.join(__dirname, filename); | |
// set up a read-only file | |
fs.writeFileSync(filePath, content); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A snippet using the github public api to get | |
// the url and sha of the first commit for a given repo | |
function openFirstCommit(userorg, repo) { | |
return fetch('https://api.github.com/repos/'+userorg+'/'+repo+'/commits') | |
// the link header has additional urls for paging | |
// parse the original JSON for the case where no other pages exist | |
.then(res => Promise.all([res.headers.get('link'), res.json()])) | |
.then(([link, commits]) => { | |
if (link) { |