Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
awesome-copyright
Advanced tools
Awesome copyright notice for React and VanillaJS with auto-renewal of the year.
Awesome copyright notice for Kuse and VanillaJS with auto-renewal of the year.
There is only one practical application - to create copyright notices with automatic replacement of the copyright renewal year. This is an npm test package created for one purpose - to learn how to create npm packages.
npm install awesome-copyright
or
yarn add awesome-copyright
Add Copyright
to your component:
import React from 'react'
import ReactDOM from 'react-dom/client'
import * as Copyright from "awesome-copyright";
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
<React.StrictMode>
<div>
<footer>
<Copyright.React // Use React component
year={2022}
yearOnly={false}
creator="Igor Teplostanski"
message="By"
styles="copyright"
creatorStyle="copyright__creator"
/>
</footer>
</div>
</React.StrictMode>
)
Add Copyright
to your component:
import * as Copyright from "awesome-copyright";
Copyright.Vanilla({ // Use Vanilla js
element: document.querySelector<HTMLDivElement>('#copyright')!,
yearOnly: false,
yearStyle: 'test',
});
Params | Type | Example | Default state | Description |
---|---|---|---|---|
year | string/number | 2023/"2023" | current year | Year of copyright start |
yearOnly | boolean | true/false | false | Show only the Year the copyright started. It is disabled by default and if the current year differs from the year of the beginning, it shows the years in the format '2000-2023' |
creator | string | "John Doe" | "" | Name of the copyright holder. |
copy | string | "®" | "©" | Copyright symbol |
message | string | "Create by" | "" | The text before the creator 's name |
styles | srting | "copyright" | "" ( Only for React component ) | Styles the root block of the component. Accepts a string with the CSS class name/names |
yearStyle | string | "year" | "" | Styles the year block of the component. Accepts a string with the CSS class name/names |
messageStyle | string | "message" | "" | Styles the message block of the component. Accepts a string with the CSS class name/names name |
copyStyle | string | "copy-symbol" | "" | Styles the copy symobl block of the component. Accepts a string with the CSS class name/names |
creatorStyle | string | "name" | "" | Styles the creator block of the component. Accepts a string with the CSS class name/names |
element | string | "#copyright" | Required parameter for Vanilla | HTML element id |
FAQs
Awesome copyright notice for React and VanillaJS with auto-renewal of the year.
The npm package awesome-copyright receives a total of 0 weekly downloads. As such, awesome-copyright popularity was classified as not popular.
We found that awesome-copyright demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.