Skip to content
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

cant use like a Node module #21

Open
nsklyarov opened this issue May 2, 2019 · 0 comments
Open

cant use like a Node module #21

nsklyarov opened this issue May 2, 2019 · 0 comments

Comments

@nsklyarov
Copy link

nsklyarov commented May 2, 2019

Hi.

Cool utility, but i have several problems when i use this like a Node module

npm init -y
npm i -g domcurl
npm i -S domcurl
touch index_1.js 
touch index_2.js 

Example 1:

in this example func call run immediately

node index_1.js

index_1.js

const domcurl = require('domcurl');
console.log(domcurl);

output:

--url or default value is not a valid URL
{}

Example 2:

this is example from doc

node index_2.js

index_2.js

const {domcurl} = require('domcurl');
domcurl(`https://paul.kinlan.me/`, {});

output:

TypeError: domcurl is not a function

Sorry, I pointed out two problems in one ticket.
Thank you for your attention!🙄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant