معرفی شرکت ها


argsparser-0.0.7


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A tiny command line arguments parser
ویژگی مقدار
سیستم عامل -
نام فایل argsparser-0.0.7
نام argsparser
نسخه کتابخانه 0.0.7
نگهدارنده ['kof']
ایمیل نگهدارنده ['oleg008@gmail.com']
نویسنده Oleg Slobodskoi
ایمیل نویسنده oleg008@gmail.com
آدرس صفحه اصلی git+ssh://git@github.com/kof/node-argsparser.git
آدرس اینترنتی https://github.com/kof/node-argsparser#readme
مجوز -
## Yet another tiny arguments parser for node ## Features * extremely tiny * instead to parse all possible spellings, it uses just some simple rules ## How this parser works The target is to get a key-value object from an array. A key can be the first element or element prefixed by "-" and "--" (switch). So the parser loops through the array and looks for keys. After he could detect an a key all next elements will be added as a value of this key until he find another key. If there is no value, then the key is true (boolean). If there are a lot of values, then the key is an array. ## Examples node script.js -> {"node": "script.js"} node script.js -o -> {"node": "script.js", "-o": true} node script.js -o test -> {"node": "script.js", "-o": "test"} node script.js -a testa --b testb -> {node: "script.js", "-a": "testa", "--b": "testb"} node script.js -paths /test.js /test1.js -> {node: "script.js", "-paths": ["/test.js", "/test1.js"]} ## Usage // per default it parses process.argv var args = require( "argsparser" ).parse(); // {"node": "/path/to/your/script.js"} // optional you can pass your own arguments array var args = require( "argsparser" ).parse(["-a", "test"]); // {"-a": "test"} ## Installation npm install argsparser


زبان مورد نیاز

مقدار نام
4.0.0 Npm


نحوه نصب


نصب پکیج tgz argsparser-0.0.7:

    npm install argsparser-0.0.7.tgz