jacktuck / unfurl

Metadata scraper with support for oEmbed, Twitter Cards and Open Graph Protocol for Node.js :zap:
MIT License
475 stars 51 forks source link

Package installation #62

Closed CoinCoderBuffalo closed 4 years ago

CoinCoderBuffalo commented 4 years ago

Is there a way to use require instead of import from?

jacktuck commented 4 years ago

I think we output in commonjs so require should work. What is the issue you are having?

CoinCoderBuffalo commented 4 years ago

My mistake. Closing the issue.

This works:

const { unfurl } = require('unfurl.js');

jacktuck commented 4 years ago

Ah okay. Well glad you got things working :)