nodesite.eu
TypeScript icon, indicating that this package has built-in type declarations

1.2.0-37 • Public • Published

nodesite.eu

Host a website, bypass your ISP's firewall, with little bandwidth, easily!

yarn add nodesite.eu

Create a dynamic web page with file-based handles!

npx nodesite.eu dyn your_name_here

Use it programatically!

const { create, rewrite } = require('nodesite.eu`);
create('foobar', '/', (request) => rewrite('404.html'), 'public/');

Play around!

const { create } = require('nodesite.eu');

create('fun', '/', () => ({ statusCode: 302, head: { Location: '/three' } }));
create('fun', '/three', () => ({
	statusCode: 302,
	head: { Location: '/two' },
}));
create('fun', '/two', () => ({ statusCode: 302, head: { Location: '/one' } }));
create('fun', '/one', () => ({
	statusCode: 302,
	head: { Location: 'https://therickroll.com' },
}));

Check out everyone else's work!

List of NodeSites

And remember to have fun! <3

(c) 2021 - Licensed under the GNU GPL, sources are on GitHub

Don't be evil.

/nodesite.eu/

    Package Sidebar

    Install

    npm i nodesite.eu

    Weekly Downloads

    83

    Version

    1.2.0-37

    License

    GPL-3.0-or-later

    Unpacked Size

    77.1 kB

    Total Files

    8

    Last publish

    Collaborators

    • realprokopschield