sample node app

This commit is contained in:
Chris Ayers
2022-04-06 16:48:53 +00:00
parent 388b6cde3d
commit e81b2de78f
3 changed files with 17 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# A sample Node app showing GitHub Actions
+4
View File
@@ -0,0 +1,4 @@
module.exports = function removespace(string) {
if (typeof string !== "string") throw new TypeError("Meh! Enter a string!!");
return string.replace(/\s/g, "");
};
+12
View File
@@ -0,0 +1,12 @@
{
"name": "@codebyte5/node-example",
"version": "1.0.1",
"description": "a sample package",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Chris Ayers",
"license": "MIT"
}