Skip to content

ES import Service from 'node-windows' #357

Answered by miquelfire
Harvey-Mushman asked this question in Q&A
Discussion options

You must be logged in to vote

I think you also could do this (untested, there might be a special syntax CommonJS libraries need to be written in to allow this):

import { Service } from 'node-windows';

Note: When this library was written (and the maintainer had time to keep things up to date), ESM wasn't a thing yet, which is why none of the documentation talks about that format.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@coreybutler
Comment options

Answer selected by Harvey-Mushman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants