-
Notifications
You must be signed in to change notification settings - Fork 495
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
How to require/import textbelt as a module? #121
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is the README outdated? Or an additional step needed, as in meant for node.js veterans and not novices?
On cloning repo, you can't just use as a module it seems, to a novice anyway. Following README, it's really vague on the steps other than code to invoke it when everything is set up right. Attempting to follow the instructions "as is" results in something like:
I'm actually more familiar with running the server version.
Now, we could use it with npm install, but it's not clear how best to do that, as I just used same repo and did symlink to itself under
node_modules
back to parent root and that didn't seem to work, trying to invoke it from a node shell in parent root.One could however import/require by JS file by relative/absolute path to textbelt repo like:
and then use it the same way as the module import usage.
I did look up npm install of textbelt, but seems that repo for npm is separately maintained though:
https://www.npmjs.com/package/textbelt
https://github.com/ajay-gandhi/textbelt
although I see other variants on npm:
https://www.npmjs.com/package/mtextbelt
The text was updated successfully, but these errors were encountered: