You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can try changing licenseFilePath: licence, to licenseFile: licence,.
I think that should work by looking at lines 116 and 120 of lib/index.js file.
Hi, I am new in this. I followed the this steps:
But when I try to parse the file I get this error.
This is my code for parsing the license:
const licenseFile = require('nodejs-license-file');
const template = [
'====BEGIN LICENSE====',
'{{&licenseVersion}}',
'{{&applicationVersion}}',
'{{&firstName}}',
'{{&lastName}}',
'{{&email}}',
'{{&expirationDate}}',
'{{&serial}}',
'=====END LICENSE====='
].join('\n');
const licence =
====BEGIN LICENSE==== 1 1.0.0 First Try [email protected] 20/02/2021 DMx0WOLc3oKiNpnGYzQUk5BDJaT4jBeABzTkpp0AoldXGXhUih8X+HILBbDV4MVtWDUMnOPR52xF5XnLpiLzzIVnv7jkvEk1AXXUKRjPH1bdOybPKmjJKan25hrbKZmYrWcFqS+U3X5fi2FL/1lwKjJ7TwexlG1Chj2rVBBsWbCjJYmYRWUsytPk/QP96w4/dbe0itPYgUHp2so70sRnUFPlasMl9UzR1BQF5QLbNABXL3Hy3sdoQEMXIdit35s1vxrWeVQ5AYujaVqwqI5a4BxyHFgBcKeXlrPu2sAsXxhsRC9tr/lbdc3so7CVTexcOnDJrBx5N3zQh3nqSZcQ6w== =====END LICENSE=====
;try {
} catch (err) {
}
Is there any documentation how to use this module? it looks really good, but I cant figure it out how to use it.
The text was updated successfully, but these errors were encountered: