🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@hybridxweb/copyright-x

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hybridxweb/copyright-x

A simple copyright component which will set year by default if not provided

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

Version Documentation Maintenance License: MIT

A lib for web components(custom components) by hybridx

✨ Demo

Run tests

npm run test

Usage

Install hybridx webcomponents

  • Use npm package manager to install components
npm install --save copyright-x
  • Include component
import '@hybridxweb/copyright-x/dist/copyright-x';
  • Usage
<copyright-x></copyright-x>

<copyright-x>
  <span slot="name">hybridX</span>
</copyright-x>

<copyright-x year="2020">
</copyright-x>

To use it in React

<script>
require('~/node_modules/@hybridxweb/copyright-x/dist/copyright-x);
</script>

<copyright-x></copyright-x>

<copyright-x>
  <span slot="name">hybridX</span>
</copyright-x>

<copyright-x year="2020">
</copyright-x>

To use it in Angular

  • Install and import the component in app.module and add CUSTOM_ELEMENT_SCHEMA
import '@hybridxweb/copyright-x/dist/copyright-x';
@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
  ],
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Using style API

  • Pass using css variables
<style>
  copyright-x {
    --fontSize: 1rem;
    --fontColor: #72767B;
  }
</style>

Author

👤 Deepesh Nair

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright Š 2020 Deepesh Nair.

This project is MIT licensed.

Keywords

copyright

FAQs

Package last updated on 30 May 2020

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