This package provides a function to find the first non-repeating character in a string.
You can install this package via npm:
npm install non-repeating-char
const firstNonRepeatingChar = require('non-repeating-char');
const result = firstNonRepeatingChar('swiss');
console.log(result); // Output will be 'w'