stdlib / f Goto Github PK
View Code? Open in Web Editor NEWFunctional Microservice Request Library
License: MIT License
Functional Microservice Request Library
License: MIT License
Using equal signs breaks the params.
➜ stripe git:(master) ✗ f . --redirect-url="https://nemo.github.io/stripe-f/" --redirect-timeout="10" --amount="999" --charge-description="Test Payment" --stripeTokenType="card" --stripeEmail="[email protected]" --stripeBillingName="Nima Gardideh" --stripeBillingAddressCountry="United States" --stripeBillingAddressCountryCode="US" --stripeBillingAddressZip="94103" --stripeBillingAddressLine1="1600 15th Street, Apartment 616" --stripeBillingAddressCity="San Francisco" --stripeBillingAddressState="CA" --stripeShippingName="Nima Gardideh" --stripeShippingAddressCountry="United States" --stripeShippingAddressCountryCode="US" --stripeShippingAddressZip="94103" --stripeShippingAddressLine1="1600 15th Street, Apartment 616" --stripeShippingAddressCity="San Francisco" --stripeShippingAddressState="CA"
/usr/local/lib/node_modules/lib/node_modules/f/lib/parse.js:3
If you call a private function over HTTPS, how do you authenticate it?
Also, is there a reason you can't use POST requests and have a body which would allow for numbers as well as strings since all URL params are made into strings.
When I supply a kwarg from the command line as an empty string, f
throws an exception. Here is an example:
$ f thisdavej/finance --ticker ""
Warning: no "env.json" detected
/usr/lib/node_modules/lib/node_modules/f/lib/parse.js:3
if (value[0] === '"') {
^
TypeError: Cannot read property '0' of null
at convertString (/usr/lib/node_modules/lib/node_modules/f/lib/parse.js:3:12)
at parseArg (/usr/lib/node_modules/lib/node_modules/f/lib/parse.js:84:37)
at parseParams (/usr/lib/node_modules/lib/node_modules/f/lib/parse.js:119:10)
at Object.parseString [as fromString] (/usr/lib/node_modules/lib/node_modules/f/lib/parse.js:134:19)
at external (/usr/lib/node_modules/lib/node_modules/f/lib/f.js:37:22)
at Object.<anonymous> (/usr/lib/node_modules/lib/cli/f_bin.js:79:19)
at Module._compile (module.js:573:32)
at Object.Module._extensions..js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.