Skip to content

Commit

Permalink
add package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
9r3i committed Jan 13, 2023
1 parent 54179b9 commit cc27e7e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@9r3i:registry=https://npm.pkg.github.com
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "@9r3i/parser",
"version": "1.1.2",
"description": "simple string parser",
"main": "parser.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"parser",
"parse",
"json",
"query",
"url"
],
"repository": {
"type": "git",
"url": "git+https://github.com/9r3i/parser.git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"author": "9r3i",
"license": "MIT",
"homepage": "https://github.com/9r3i/parser#readme"
}
4 changes: 3 additions & 1 deletion parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* started at january 8th 2023
*/
function parser(){
this.version='1.1.0';
this.version='1.1.2';
/* parse url path -- protocol and hostname are not included */
this.parseURL=function(str){
if(typeof str!=='string'){return false;}
Expand Down Expand Up @@ -125,3 +125,5 @@ this.objectLength=function(obj){
}return size;
};
};

exports.parser=parser;

0 comments on commit cc27e7e

Please sign in to comment.