open-index/open-npm huggingface dataset:
npm package: @ngtek/nodejssdk
Description: Node.js sdk
Author: tekdi
Latest version: 0.0.11

# nodejssdk

Steps to Publish package:
1. npm version **patch**     (major/minor/patch) (1.0.**0**)
2. git push origin **v0.0.4**
3. git push
4. npm publish

package **published** successfully. You can check here - https://www.npmjs.com/package/@ngtek/nodejssdk

How to run - **node index.js**

How to use sdk in **Angular Project** :

1. Install **SDK** in your angular project.
<pre> npm i @ngtek/nodejssdk </pre>

2. Import library in **app.component.ts** file
<pre> import * as nodejssdk from  '@ngtek/nodejssdk';
</pre>

3. Now, you can access any function of library
<pre>   nodejssdk.isOdd(2);
</pre>
npm package: @ngthuc/react-fui
Description: React components for Firebase UI
Author: Nguyen Thuc
Latest version: 0.1.58
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# React Firebase Web Auth

## Install
```
npm i @ngthuc/react-fui
```

## Demo usage
```js
import React, {useEffect, useState} from 'react';
import {getAuth, signOut} from "firebase/auth";
import firebase from "firebase/compat/app";
import StyledFirebaseAuth from "@ngthuc/react-fui/StyledFirebaseAuth";
import parsePhoneNumber from "libphonenumber-js";

firebase.initializeApp({apiKey: "...", authDomain: "...", projectId: "...", ...});
const auth = getAuth();
const googleAuthProvider = new GoogleAuthProvider();
const githubAuthProvider = new GithubAuthProvider();
const phoneAuthProvider = new PhoneAuthProvider(auth);
const emailAuthProvider = new EmailAuthProvider();

const FirebaseDemo = (props) => {

	const [user, setUser] = useState({});
	const [isSignedIn, setIsSignedIn] = useState(false); // Local signed-in state.

	// Listen to the Firebase Auth state and set the local state.
	useEffect(() => {
		const unregisterAuthObserver = auth.onAuthStateChanged((user) => {
			setIsSignedIn(!!user);
		});
		return () => unregisterAuthObserver(); // Make sure we un-register Firebase observers when the component unmounts.
	}, []);

	if (isSignedIn) {
		return (
			<div>
				<p>Xin chào {user?.displayName || user?.email || user?.phoneNumber || 'Unknown'}! Bạn hiện đã đăng nhập!</p>
				<button onClick={() => signOut(auth)}>Đăng xuất</button>
			</div>
		);
	}

	return (
		<StyledFirebaseAuth
			uiConfig={{
				defaultCountry: 'VN',
				signInOptions: [
					googleAuthProvider,
					githubAuthProvider,
					phoneAuthProvider,
					emailAuthProvider
				],
				callbacks: {
					signInSuccessWithAuthResult: (authResult) => {
						console.log('signInSuccessWithAuthResult', authResult);
						setUser(authResult.user);
					},
					signInFailure: (error) => {
						// Handle Errors here.
						const errorCode = error.code;
						const errorMessage = error.message;
						// The email of the user's account used.
						const {phone, email} = error.customData;
						console.log('SignIn fail:', {errorCode, errorMessage, phone, email});
					},
				},
				locale: {
					parsePhoneNumber
				}
			}}
			firebaseAuth={auth}
		/>
	)
}

export default FirebaseDemo;
```

## License & Credit
Publish under MIT license by [ngthuc](https://ngthuc.com)
npm package: @ngti/jwt-ed25519
Description: Generates a JWT using Ed25519 signature
Author: NGTI
Latest version: 1.0.2

# jwt-ed25519
Signs a JWT using Edwards-curve Ed25519

## Installation
~~~
npm install @ngti/jwt-ed25519
~~~

## Test
~~~
npm test
~~~

## Documentation
~~~ javascript
jwt-ed25519(jwtHeader, jwtPayload, privateKey)
~~~
  * jwtHeader `JWT header (object or string)`
  * jwtPayload `JWT payload (object or string)`
  * privateKey `Private Key (in UTF-8) which is going to be used to sign the JWT with Ed25519`
  
## Usage
~~~ javascript
const ed25519 = require('@ngti/jwt-ed25519')

const jwtHeader = {
    alg: 'EdDSA',
    typ: 'JWT'
}

const jwtPayload = {
    sub: 'user1',
    iss: 'issuer1'
}

const signedJwt =
    ed25519(jwtHeader, jwtPayload, 'nWyompky-XcqmHoAzUROiGB6o7u2DilwrFy23C8coYM')

console.log('JWT signed with ed25519: ' + signedJwt)
~~~

This will print the following
~~~
JWT signed with ed25519: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyMSIsImlzcyI6Imlzc3VlcjEifQ.I9jOjFBpKAHzIwyAAOVTioi4YIEw3RIBAGNpW46ghI7pd5ssflWn1cXc62d-eX70Vk2hr33JoxWG9CWsG1e8BQ
~~~

## License
~~~
MIT
~~~
npm package: @ngtmuzi/samba-client
Description: wrapper for smbclient
Author: eFlex Systems
Latest version: 5.0.2-fix.1

# node-samba-client

Node.js wrapper for smbclient

## Fork notes

This fork project using to fix some strange problem when calling smbclient, on future it should be merge to original project.
## Requirements

Requires Node.js 10+
Smbclient must be installed. This can be installed on Ubuntu with `sudo apt-get install smbclient`.

## API

```javascript
const SambaClient = require('samba-client');

let client = new SambaClient({
  address: '//server/folder', // required
  username: 'test', // not required, defaults to guest
  password: 'test', // not required
  domain: 'WORKGROUP', // not required
  maxProtocol: 'SMB3', // not required
  maskCmd: true, // not required, defaults to false
  timeout: 30, // not required, smbclient's param, secounds of task timeout
  execTimeout: 30000, // not required, execa's param, milliseconds of process timeout
});

// send a file
await client.sendFile('somePath/file', 'destinationFolder/name');

// get a file
await client.getFile('someRemotePath/file', 'destinationFolder/name');

// create a folder
await client.mkdir('folder/tree', (optional) 'current/working/directory');
// By default CWD is __dirname

// executes dir command in remote directory
await client.dir('remote/folder', (optional) 'current/working/directory');
// By default CWD is __dirname

// validate if file or folder exists in the remote device
await client.fileExists('remote/file', (optional) 'current/working/directory');
// By default CWD is __dirname
```

## Troubleshooting

### Error: spawn ENOTDIR in Electron

Pass an empty string in the Current Working Directory parameter, for more information see [this PR](https://github.com/eflexsystems/node-samba-client/pull/20).