Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unrev

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unrev

Unrevealed

  • 0.3.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Unrevealed CLI

The Unrevealed CLI is a code generation tool designed to simplify the integration of Unrevealed into your codebase. Using the CLI will allow you to automaticaly type the SDKs. This has multiple benefits:

  • Autocomplete: Don't open Unrevealed every time you need to know the key of a feature
  • Validation: Never make typos anymore, or forget to pass the right attributes of your users and teams
  • Maintenance: Easily clean up your features by archiving them on Unrevealed then running the CLI to remove them from your codebase

Feature autocomplete example

Getting started

Install the CLI. We recommend adding is as a devDependency of your project. If you have a monorepo, we also recommend installing it at the root if you're using it in multiple applications.

npm install -D unrev

Usage

  1. Login to Unrevealed
unrev login
  1. Initialize your config
unrev init

This will ask you a few questions and generate unrevealed.config.json at the root of your project.

  1. Generate
unrev generate

This command will generate types for the target SDKs, based on unrevealed.config.json

unrevealed.config.json

The unrevealed config file is used by the CLI and the VS Code extension to generate code and give you context about your features. Here's an example of config file:

{
  "productId": "YOUR_PRODUCT_ID",
  "generates": {
    "apps/webapp/src/generated/unrevealed.ts": {
      "sdk": "react"
    },
    "apps/api/src/generated/unrevealed.ts": {
      "sdk": "node"
    }
  }
}

FAQs

Package last updated on 01 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc