open-index/open-npm huggingface dataset:
npm package: @rocketseat/adonis-timezone
Description: This library provides an easy way to start using timezones with AdonisJS.
Latest version: 0.7.0

# Adonis Timezone Provider

This library provides an easy way to start using timezones with AdonisJS.

[![Coverage Status](https://coveralls.io/repos/github/Rocketseat/adonis-timezone/badge.svg?branch=master)](https://coveralls.io/github/Rocketseat/adonis-timezone?branch=master)

## Install

`adonis install @rocketseat/adonis-timezone`

## Use

To use this provider you need to add a `trait` inside your `Model`, like this:

```js
class User extends Model {
  static boot() {
    super.boot();

    this.addTrait("@provider:Timezone/Trait");
  }
}
```

```
OBS: Unfortunately cannot overwrite castDates
```

And you need to create a middleware and inside it, use the `timezone` context variable.

On the timezone variable, you can choose the timezone, that your model will provide the timestamps and custom time & date.

```js
class Timezone {
  async handle({ timezone }, next) {
    timezone.activate("America/Sao_Paulo");
    await next();
  }
}
```

If you'd like to add user's timezone, then you should add a named middleware to the `timezone` and the user must have a timezone field in their Model.

```js
class Timezone {
  async handle({ timezone, auth }, next) {
    timezone.activate(auth.user.timezone);
    await next();
  }
}
```
npm package: @rocketseat/commitlint-config
Description: Shareable commitlint config used by Rocketseat
Latest version: 0.0.3

# @rocketseat/commitlint-config

<p>
  <img src="https://img.shields.io/npm/v/@rocketseat/commitlint-config?style=flat-square&color=8257E5&labelColor=121214" alt="npm version" />
  <img alt="License" src="https://img.shields.io/github/license/rocketseat/commitlint-config?style=flat-square&color=8257E5&labelColor=121214">
</p>

Shareable [`commitlint`](https://github.com/conventional-changelog/commitlint) config used by Rocketseat.

## Install

You can install it with npm or Yarn.

```sh
# npm
npm i -D @rocketseat/commitlint-config @commitlint/cli

# Yarn
yarn add -D @rocketseat/commitlint-config @commitlint/cli
```

## Usage

After installing it, apply the config to `commitlint` by running the following command:

```sh
echo "module.exports = { extends: ['@rocketseat/commitlint-config'] };" > .commitlintrc.js
```

## Bonus

To lint commits before they are created, install Husky and use the 'commit-msg' hook.

```sh
# Npm
npm i -D husky

# Yarn
yarn add -D husky
```

After that, you can create a `.huskyrc` file or add to your `package.json` the following code for

Husky v4:

```json
{
  "husky": {
    "hooks": {
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  }
}
```

Husky v5:

```
# .husky/commit-msg
# ...
npx --no-install commitlint --edit $1
# or
yarn commitlint --edit $1
```

## Version Support

- Node.js [LTS](https://github.com/nodejs/LTS#lts-schedule) `>= 10.21.0`
- git `>= 2.13.2`

## License

MIT License © [Rocketseat](https://github.com/Rocketseat)
npm package: @rocketseat/cz-lerna-changelog
Description: Commitizen adapter following the Rocketseat format.
Author: Joshua Nelson
Latest version: 1.0.0

# cz-lerna-changelog

## 2.0.0

Version 2.0.0 is compatible with lerna version 3 only, if you need support for lerna 2 (more specifically, lerna 2.0.0.beta.31).

Please note that this repository is not actively maintained as it's not actively used here. We are more than happy to accept PRs however. 😀


# Releasing

* `master` branch tracks the 2.0.0 version
* `1.x` branch tracks 1.0.0 version

Status:
[![npm version](https://img.shields.io/npm/v/cz-lerna-changelog.svg?style=flat-square)](https://www.npmjs.org/package/cz-lerna-changelog)
[![npm downloads](https://img.shields.io/npm/dm/cz-lerna-changelog.svg?style=flat-square)](http://npm-stat.com/charts.html?package=cz-lerna-changelog&from=2015-08-01)
[![Build Status](https://img.shields.io/travis/atlassian/cz-lerna-changelog.svg?style=flat-square)](https://travis-ci.org/atlassian/cz-lerna-changelog)

Part of the [commitizen](https://github.com/commitizen/cz-cli) family. Prompts for [conventional changelog](https://github.com/stevemao/conventional-changelog-angular/blob/master/index.js) standard in a [lerna](https://lernajs.io/) environment.


Example view (with a few components):

![example view](https://www.evernote.com/l/AAVyZb3cVbpP0oFqYnkpGMAFIbBW3JRGOEUB/image.png)
npm package: @rocketseat/cz-rocketseat-changelog
Description: Commitizen adapter following the Rocketseat format.
Author: Joshua Nelson
Latest version: 1.0.1

# cz-lerna-changelog

## 2.0.0

Version 2.0.0 is compatible with lerna version 3 only, if you need support for lerna 2 (more specifically, lerna 2.0.0.beta.31).

Please note that this repository is not actively maintained as it's not actively used here. We are more than happy to accept PRs however. 😀


# Releasing

* `master` branch tracks the 2.0.0 version
* `1.x` branch tracks 1.0.0 version

Status:
[![npm version](https://img.shields.io/npm/v/cz-lerna-changelog.svg?style=flat-square)](https://www.npmjs.org/package/cz-lerna-changelog)
[![npm downloads](https://img.shields.io/npm/dm/cz-lerna-changelog.svg?style=flat-square)](http://npm-stat.com/charts.html?package=cz-lerna-changelog&from=2015-08-01)
[![Build Status](https://img.shields.io/travis/atlassian/cz-lerna-changelog.svg?style=flat-square)](https://travis-ci.org/atlassian/cz-lerna-changelog)

Part of the [commitizen](https://github.com/commitizen/cz-cli) family. Prompts for [conventional changelog](https://github.com/stevemao/conventional-changelog-angular/blob/master/index.js) standard in a [lerna](https://lernajs.io/) environment.


Example view (with a few components):

![example view](https://www.evernote.com/l/AAVyZb3cVbpP0oFqYnkpGMAFIbBW3JRGOEUB/image.png)
npm package: @rocketseat/ddd-utils
Description: Shared DDD utils used inside Rocketseat microservices.
Latest version: 1.0.1

# DDD Utils

Shared utils to build Domain-Driven Design Node.js applications.

## Installation

```
yarn add @rocketseat/ddd-utils
```

### Domain utils

- `AggregateRoot`: Used to add Domain Events funcionality to Entity;
- `Entity`: Mark a class as a Entity;
- `UniqueEntityID`: Create or gereate an unique ID using UUID;
- `ValueObject`: Create a entity attribute with custom validations;
- `WatchedList`: Create a list that memorize added or deleted items;

#### Domain events utils

- `DomainEvents`: Used by Aggregate Root to add Domain Events to Entity;
- `IDomainEvent`: Interface used when creating a new Domain Event;
- `IHandle`: Interface used when creating a new Domain Event Handler;

### Infra utils

- `BaseController`: Extendable class used inside controllers in our application;
- `IMapper`: Interface used when creating mappers (WIP);

### Logic utils

- `AppError`: Default errors caused by malfunctioning of our application;
- `Guard`: Simple validation class used to validate domain entities;
- `Result`: Result class, do not throw errors, use always the result class;
- `UseCaseError`: Extendable class used to define a Use Case error;

### Tests utils

- `BaseFakeRepo`: Extendable class to create fake repositories used for testing;
npm package: @rocketseat/gatsby-theme-docs
Description: Out of the box Gatsby Theme for creating documentation websites easily and quickly.
Author: João Pedro Schmitz
Latest version: 4.0.1

<p align="center">
  <img src="https://rocketseat-cdn.s3-sa-east-1.amazonaws.com/theme-docs.svg" alt="A illustration of file that is the @rocketseat/gatsby-theme-docs logo" width="100">
</p>

<h2 align="center">
  @rocketseat/gatsby-theme-docs
</h2>

<p align="center">
  Out of the box Gatsby Theme for creating documentation websites easily and quickly.
</p>

<p align="center">
  <img src="https://img.shields.io/badge/PRs-welcome-%238257E6.svg" alt="PRs welcome!" />

  <img alt="License" src="https://img.shields.io/badge/license-MIT-%238257E6">

  <a href="https://twitter.com/intent/follow?screen_name=jpedroschmitz">
    <img src="https://img.shields.io/twitter/follow/jpedroschmitz.svg?label=Follow%20@jpedroschmitz" alt="Follow @jpedroschmitz" />
  </a>
</p>

<p align="center">
  <a href="#-features">Features</a> •
  <a href="#-getting-started">Getting started</a> •
  <a href="#-docs">Docs</a> •
  <a href="#-contributing">Contributing</a> •
  <a href="#-license">License</a>
</p>

## 🚀 Features

- 📝 MDX for docs;
- 🛣 Yaml-based sidebar navigation;
- 📱 Responsive and mobile friendly;
- 🖥 Code highlighting with [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) and [react-live](https://github.com/FormidableLabs/react-live) support;
- 🥇 SEO (Sitemap, schema.org data, Open Graph and Twitter tags).
- 📈 Google Analytics support;
- 📄 Custom docs schema;
- 🖱 Table of Contents;
- ⚡️ Offline Support & WebApp Manifest;
- and much more 🔥

## ⚡️ Getting started

1. Create the website.

   ```sh
   npx gatsby new rocketdocs https://github.com/jpedroschmitz/gatsby-starter-rocketdocs
   ```

2. Start developing.

   ```sh
   cd rocketdocs
   gatsby develop
   ```

3. Are you ready for launch? 🚀

   Your site is now running at `http://localhost:8000`

## 📄 Docs

Looking for docs? Check our live demo and documentation [website](https://rocketdocs.netlify.app).

## ✨ Contributing

Thanks for being interested in contributing! We’re so glad you want to help! Please take a little bit of your time and look at our [contributing guidelines](https://github.com/jpedroschmitz/rocketdocs/blob/main/.github/CONTRIBUTING.md) and our
[code of conduct](https://github.com/jpedroschmitz/rocketdocs/blob/main/.github/CODE_OF_CONDUCT.md)! All type of contributions are welcome, such as bug fixes, issues or feature requests.

## 🗺 Changelog

All notable changes to this project will be documented on the [CHANGELOG](https://github.com/jpedroschmitz/rocketdocs/blob/main/%40rocketseat/gatsby-theme-docs/CHANGELOG.md) file.

## 📝 License

Licensed under the [MIT License](https://github.com/jpedroschmitz/rocketdocs/blob/main/%40rocketseat/gatsby-theme-docs/LICENSE).

---

Made with 💜 by João Pedro
npm package: @rocketseat/kafka-typings
Description: This package exports typings for Kafka topics and messages so we can keep a pattern of the data exchanged between the micro-services.
Latest version: 1.0.8

# Kafka Typings

This package exports typings for Kafka topics and messages so we can keep a pattern of the data exchanged between the micro-services.

## Usage example

```ts
import * as PlutoKafka from '@rocketseat/kafka-typings/types/pluto';
import { kafka } from 'example-kafka-client-path';

const message: PlutoKafka.SignatureCreatedMessage = {
  // this will be typed
}

kafka.emit(PlutoKafka.TOPICS.SIGNATURE_CREATED, message);
```

## Using locally

To use this package locally, we will use [yalc](https://github.com/wclr/yalc) that works like a local store for NPM packages.

First, install yalc globally using NPM or Yarn.

```sh
yarn global add yalc
npm i yalc -g
```

### Publish package to local store

Inside the kafka-typings folder, after changing it's code, you can:

```sh
yalc publish
```

This will publish the package to the local store.

### Use the package inside another project

Inside the project folder, run:

```sh
yalc link @rocketseat/kafka-typings
```

### Update the package code

You can always refresh the package code using `yalc update`, this will bring the latest version of the code from within the local store (this will only works after a `yalc publish`).

## Keep it out of Git

Always remember to include `yalc.lock` and `.yalc` folder inside the `.gitignore` file on the project folder.
npm package: @rocketseat/omni
Description: Omni provides a CLI to scaffold OmniStack projects
Latest version: 0.0.7

# Omni CLI
Create your OmniStack project

## Current usage

- Creates a `omnistack` directory and installs **server**, **web** and **mobile**:
```sh
omni init omnistack
```

- Creates a `omnistack` directory but only installs **server** and **mobile**:
```sh
omni init omnistack --only=server,mobile
```

- Install only **web** on current directory:
```sh
omni init . --only=web
```
npm package: @rocketseat/omni-cli
Description: Omni provides a CLI to scaffold OmniStack projects
Latest version: 0.0.3

# Omni CLI
Create your OmniStack project

## Current usage

- Creates a `omnistack` directory and installs **server**, **web** and **mobile**:
```sh
omni init omnistack
```

- Creates a `omnistack` directory but only installs **server** and **mobile**:
```sh
omni init omnistack --only=server,mobile
```

- Install only **web** on current directory:
```sh
omni init . --only=web
```
npm package: @rocketseat/rocket-scripts
Description: Configuration and scripts to power Rocketseat's react apps
Latest version: 0.0.24

# rocket-scripts

This package includes scripts and configurations used to power all Rocketseat's react apps.

## Tests

As rocket-scripts can be used with both javascript and typescript files, it is necessary to configure based on what you're using.

To use the tests with rocket-scripts it is necessary to configure the enzyme with the following packages:

### Javascript

```
yarn add enzyme enzyme-adapter-react-16 -D
```

### Typescript:

```
yarn add enzyme enzyme-adapter-react-16 @types/enzyme @types/enzyme-adapter-react-16 -D
```

And add the file `src/setupTests.ts` with the basic settings below:

```ts
import Enzyme from "enzyme";
import Adapter from "enzyme-adapter-react-16";

Enzyme.configure({ adapter: new Adapter() });
```

## Merging configurations

You can merge the default settings with your own.

### Jest

Create a file named jest.config.js and export an object with the settings you want to change.

## License

MIT © [Rocketseat](https://github.com/Rocketseat)

---

Made with ♥️