Skip to content

Instantly share code, notes, and snippets.

@nainglinaung
Last active April 25, 2017 20:21
Show Gist options
  • Save nainglinaung/1131c4d71995b9b9aaa31671cccb6575 to your computer and use it in GitHub Desktop.
Save nainglinaung/1131c4d71995b9b9aaa31671cccb6575 to your computer and use it in GitHub Desktop.

Revisions

  1. nainglinaung renamed this gist Apr 25, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. nainglinaung created this gist Apr 25, 2017.
    13 changes: 13 additions & 0 deletions long live summon
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@

    var website = "http://shiroyukitranslations.com/lls-chapter-";

    // <a href="http://shiroyukitranslations.com/long-live-summons/#tabs_desc_8329_4">Team</a>

    var fs = require('fs');

    var stream = fs.createWriteStream("my_file.txt");
    stream.once('open', function(fd) {
    for(i=1; i<465; i++) {
    stream.write('<a href="'+website+i+'">'+'Chapter '+i+'</a>'+"\n");
    }
    });