shaozi / ldap-authentication

🔐🔐🔐 A simple Nodejs Async LDAP authentication library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ES6 support

honzahajek opened this issue · comments

const {authenticate} = require("ldap-authentication");
to
import {authenticate} from "ldap-authentication";

and another required packages

https://stackblitz.com/edit/vite-ldap?file=main.js&terminal=dev

does this change break scripts that are using require ?

I incline to implement this since es6 in Node is mature and has large user base. The only concern I have is that existing cjs users will be forced to move their projects to es6.

If you have a backward compatible way of this transaction please share it here.