iwashi

JavaScript implementation of iwashi lang (https://github.com/Yosshi999/iwashi-lang)

Usage no npm install needed!

<script type="module">
  import iwashi from 'https://cdn.skypack.dev/iwashi';
</script>

README

iwashi-lang-js

Build Status Coverage Status Greenkeeper badge

JavaScript implementation of iwashi lang

Usage

const Iwashi = require('iwashi');
const iwashi = new Iwashi([
    'ビルにあながあく',
    'だれかがハサミで',
    'めがみえなくなってきた',
    'イワシがつちからはえてくるんだ',
    'めがみえなくなってきた',
    'タイムラインをちょんぎった',
    'ビルがつちからはえてくるんだ',
    'イワシにあながあく',
].join('\n'));

iwashi.stream.end('hoge');
iwashi.run();

const concat = require('concat-stream');
iwashi.stream.pipe(concat((data) => {
    console.log(data); //=> 'hoge';
}));