-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL Schema #18
Comments
Can you share your registration code? |
const path = require('path');
const ProtocolRegistry = require('protocol-registry');
ProtocolRegistry.register({
protocol: 'testproto',
command: `node ${path.join(__dirname, './index.js')} "$_URL_"`,
override: true,
terminal: true,
script: true
}).then(async () => {
console.log('Success');
}); |
There was bug in It has been tested in windows, but testing of macos and linux are pending post which it will be live in npm. |
As from the module we don't provide any validation of url. You need to implement that on your own. |
We have added a efficient example to extract data from urls and verify them. |
New npm version live closing this issue. |
Hey,
Given the URL: testproto://test/example?var1=hello&var2=world
And parsing the arguments passed to my JS, the below happens...
I am looking for clarification as to examples of correctly formatted URLs.
Trying to figure out how I would go about parsing these into commands, and sub command and pass variables into my application via URL query.
Can you clarify the URL schema so I know what my options are please?
The text was updated successfully, but these errors were encountered: