New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bright

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bright

**work in progress**

  • 0.5.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.9K
decreased by-8.17%
Maintainers
1
Weekly downloads
 
Created
Source

work in progress

the future is bright

Usage

npm install bright

Use it from a server component, for example in Next.js app/page.js:

import { Code } from "bright"

export default function Page() {
  return <Code lang="py">print("hello brightness")</Code>
}

Credits

  • Thanks LEI Zongmin for providing the bright npm package name

import { Code } from "bright"

const myCode = `
let hello = "hello brightness"
console.log(hello, "my old friend")
`.trim()

export default function Page() {
  return (
    <Code lang="js" lineNumbers>
      {myCode}
    </Code>
  )
}

import { Code } from "bright"

const myCode = `
let hello = "hello brightness"
console.log(hello, "my old friend")
`.trim()

// you can set any prop globally
Code.lineNumbers = true

export default function Page() {
  return <Code lang="js">{myCode}</Code>
}

import { Code } from "bright"

// there are some built in themes
// typescript should autocomplete this
Code.theme = "github-dark"

export default function Page() {
  return <Code lang="py">print("hello brightness")</Code>
}

FAQs

Package last updated on 22 Jan 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