Importing a class within an npm module in meteor -


i trying import class allhtmlentities npm module html-entities i'm not able it. tried import entites 'html-entities' it's giving me error. tried doing var entities = require('html-entities').allhtmlentities; , worked, meteorjs docs suggests using import instead of require.

does know import equivalent of var entities = require('html-entities').allhtmlentities; is?

import {allhtmlentities entites} 'html-entities'; 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -