From e3b8c17c562703020c3b5a6f37f3215b8847bb79 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sat, 19 Jan 2019 23:32:08 +0200 Subject: [PATCH] typescript(translucid): fixed typos Signed-off-by: prescientmoon --- typescript/translucid/README.md | 14 +++++++------- typescript/translucid/package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/typescript/translucid/README.md b/typescript/translucid/README.md index b8bb366..3df9376 100644 --- a/typescript/translucid/README.md +++ b/typescript/translucid/README.md @@ -1,9 +1,9 @@ # Translucid -A simple node library to bind files to requests +A simple node.js library to bind files to requests # Get started: -First you need to insall the package: +First you need to install the package: ``` npm install translucid --save ``` @@ -13,26 +13,26 @@ Then, you need to include it in your project: const trans = require("translucid"); ``` -To init your first server, call .QuickServer(port): +To create your first server, call ".QuickServer(port)": ``` trans.QuickServer(8000); ``` -The .QuickServer methode return many useful objects: +The ".QuickServer" method return many useful objects: ``` const {app,server,connect,translucid} = trans.QuickServer(8000); ``` -Connect is a promise that resolves when the server starts listening to the port: +"Connect" is a promise that resolves when the server starts listening to the port: ``` connect.then(() => { console.log("Listening on port 8000!"); }); ``` -The translucid object can be used to make files bindings: +The translucid object can be used to make file bindings: ``` translucid.bind("/","client/index.html",true//use midleware,["myId"]); ``` -Then you can add midlewares like this: +Then you can add midleware like this: ``` translucid.use({ name:"my midleware", diff --git a/typescript/translucid/package.json b/typescript/translucid/package.json index 79be118..0deeb43 100644 --- a/typescript/translucid/package.json +++ b/typescript/translucid/package.json @@ -4,7 +4,7 @@ "description": "A simple node library to bind files to requests", "main": "app.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"-1/12\" && exit 1" }, "repository": { "type": "github",