wearefractal / fusker Goto Github PK
View Code? Open in Web Editor NEWFusker is a static HTTP server that provides optional security features for HTTP/Socket.io
Home Page: http://wearefractal.com
License: MIT License
Fusker is a static HTTP server that provides optional security features for HTTP/Socket.io
Home Page: http://wearefractal.com
License: MIT License
Seem to have an issue loading fusker as I get:
/Users/cj/Dropbox/sd/acd/octopus/node_modules/fusker/lib/fusker.coffee:1
equire 'protege'
^^^^^^^^^
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
27 Sep 13:10:50 - [ERROR] SyntaxError
SyntaxError: Unexpected string
at Module._compile (module.js:406:25)
at Object..js (module.js:417:10)
at Object..js (/usr/local/lib/node_modules/node-dev/wrapper.js:57:18)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at require (module.js:355:19)
at Object.<anonymous> (/Users/cj/Dropbox/sd/acd/octopus/app.js:7:12)
at Object.<anonymous> (/Users/cj/Dropbox/sd/acd/octopus/app.js:50:4)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
I'm filing this because I don't understand the benefits of adding the fusker object to the global scope.
Since it is widely considered as bad practice in the node.js community, I am curious about this.
So, I'm trying to make this work, but no matter what I do (after add fusker) throws me this error:
TypeError: Object function (source, overwrite, deep) {
var name, x, _i, _j, _len, _len2, _ref, _ref2;
if (overwrite == null) overwrite = false;
if (deep == null) deep = false;
if (deep) {
_ref = Object.getOwnPropertyNames(source);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
name = _ref[_i];
if (this.hasOwnProperty(name && !overwrite)) continue;
Object.defineProperty(this, name, Object.getOwnPropertyDescriptor(source, name));
}
} else {
_ref2 = source.keys();
for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
x = _ref2[_j];
if (this.hasOwnProperty(x && !overwrite)) continue;
this[x] = source[x];
}
}
return this;
} has no method 'push'
at Router._route (/home/alejandromg/dev/Dropbox/ulearn/node_modules/express/lib/router/index.js:396:6)
at HTTPServer.merge (/home/alejandromg/dev/Dropbox/ulearn/node_modules/express/lib/http.js:556:31)
at HTTPServer.<anonymous> (/home/alejandromg/dev/Dropbox/ulearn/node_modules/express/lib/http.js:575:17)
at Array.forEach (native)
at HTTPServer.all (/home/alejandromg/dev/Dropbox/ulearn/node_modules/express/lib/http.js:573:11)
at Object.<anonymous> (/home/alejandromg/dev/Dropbox/ulearn/app.js:468:5)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
I saw the example but it's not working for me
You can redirect the attacker to a photo of GWB, but no rick roll option?
Outlandish. I am offended!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.