open-index/open-npm huggingface dataset:
npm package: @lamion-libs/impl
Description: NPM package for [Lamion](https://lamion.netlify.app/) events logger.
Author: ImpossibleAccuracy
Latest version: 0.1.3

# Lamion for browser

NPM package for [Lamion](https://lamion.netlify.app/) events logger.

Adapter for [API package](https://github.com/lamion-app/library-api).

Added base functionality to use Lamion in browser.
npm package: @lamkoti/passport-contentstack
Description: Contentstack authentication strategy for Passport.
Author: Ravi Lamkoti
Latest version: 0.0.3

# Passport-Contentstack

[Passport](http://passportjs.org/) strategy for authenticating with [Contentstack](https://www.contentstack.com/)
using the OAuth 2.0 API.

This module lets you authenticate using Contentstack in your Node.js applications.
By plugging into Passport, Contentstack authentication can be easily and
unobtrusively integrated into any application or framework that supports
[Connect](http://www.senchalabs.org/connect/)-style middleware, including
[Express](http://expressjs.com/).

## Installation

```shell
$ npm install @lamkoti/passport-contentstack
```

## Usage

#### Configure Strategy

The Contentstack authentication strategy authenticates users using a Contentstack account
and OAuth 2.0 tokens.  The strategy requires a `verify` callback, which accepts
these credentials and calls `done` providing a user, as well as `options`
specifying a client ID, client secret, and callback URL.

```javascript
passport.use(new ContentstackStrategy({
    clientID: CONTENTSTACK_CLIENT_ID,
    clientSecret: CONTENTSTACK_CLIENT_SECRET,
    authorizationURL:
      "https://app.contentstack.com/apps/<APP_INSTALLATION_UID>/authorize",
    callbackURL: "http://localhost:3000/auth/callback",
    region: "<NA|EU|AZURE_NA|AZURE_EU>",
  },
  function(accessToken, refreshToken, profile, done) {
    User.findOrCreate({ email: profile.email }, function (err, user) {
      return done(err, user);
    });
  }
));
```

#### Authenticate Requests

Use `passport.authenticate()`, specifying the `'contentstack'` strategy, to
authenticate requests.

For example, as route middleware in an [Express](http://expressjs.com/)
application:

```javascript
app.get('/auth/contentstack',
  passport.authenticate('contentstack'));

app.get('/auth/contentstack/callback', 
  passport.authenticate('contentstack', { failureRedirect: '/login' }),
  function(req, res) {
    // Successful authentication, redirect home.
    res.redirect('/');
  });
```

## Examples

For a complete, working example, refer to the [login example](https://github.com/RavenColEvol/passport-contentstack/tree/main/example/).

## Tests

```shell
$ npm install --dev
$ make test
```

## Credits

  - [Jared Hanson](http://github.com/jaredhanson)
  - [Ravi Lamkoti](https://github.com/RavenColEvol)

## License

[The MIT License](http://opensource.org/licenses/MIT)

Copyright (c) 2011-2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>
npm package: @lamld2510/angular-core-lib
Description: This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.1.0.
Latest version: 0.0.2

# Libs

This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.1.0.

## Code scaffolding

Angular CLI includes powerful code scaffolding tools. To generate a new component, run:

```bash
ng generate component component-name
```

For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:

```bash
ng generate --help
```

## Building

To build the library, run:

```bash
ng build libs
```

This command will compile your project, and the build artifacts will be placed in the `dist/` directory.

### Publishing the Library

Once the project is built, you can publish your library by following these steps:

1. Navigate to the `dist` directory:
   ```bash
   cd dist/libs
   ```

2. Run the `npm publish` command to publish your library to the npm registry:
   ```bash
   npm publish
   ```

## Running unit tests

To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:

```bash
ng test
```

## Running end-to-end tests

For end-to-end (e2e) testing, run:

```bash
ng e2e
```

Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.

## Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.