sa
security-adventure
npm i security-adventure
sa

security-adventure

Go on an educational Web security adventure!

by Atul Varma

0.0.2 (see all)License:BSD-2-ClauseTypeScript:Not Found
npm i security-adventure
Readme

var fs = require('fs');

var SECTION_MARKER = /^\<!-- section: ([a-z-]+) -->$/;

var readme = fs.readFileSync(__dirname + '/README.md', 'utf8'); var sections = {prologue: []}; var currentSection = 'prologue';

readme.split('\n').forEach(function(line) { var match = line.match(SECTION_MARKER); if (match) { sections[currentSection] = sections[currentSection].join('\n'); currentSection = match[1]; sections[currentSection] = []; } else { if (/Run bin\/verify.js (.+) to verify that your solution works/.test(line)) return; sections[currentSection].push(line); } });

sections[currentSection] = sections[currentSection].join('\n');

module.exports = sections;

Downloads/wk

2

GitHub Stars

334

LAST COMMIT

9yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

5

OPEN PRs

0
VersionTagPublished
0.0.2
latest
9yrs ago
No alternatives found
No tutorials found
Add a tutorial