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

daily-color

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

daily-color

Provides a unique hex code each day

  • 2.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
73
increased by508.33%
Maintainers
0
Weekly downloads
 
Created
Source

daily-color

Provides a unique hex code each day

Install

Install from npmjs.com/package/daily-color:

npm install daily-color

Use

In a JavaScript/TypeScript project, using NPM:

import { getDailyColor } from "daily-color";

console.log("Today's color is:", getDailyColor());
console.log("Another day's color is:", getDailyColor(new Date("2024-11-09")));

Directly loading the bundled JavaScript, for static projects not using NPM:

<script type="module">
  import { getDailyColor } from "https://www.aimeerivers.com/daily-color/dist/daily-color.js";

  console.log("Today's color is:", getDailyColor());
  console.log("Another day's color is:", getDailyColor(new Date("2024-11-09")));
</script>

Using the CLI:

dailycolor

Just want to see today's color?

There is a demo on www.aimeerivers.com/daily-color

And if you want to see the coming colors for the next month you can see them on www.aimeerivers.com/daily-color/month.html

Development

Install dependencies:

npm install

Run tests:

npm run test

Compile the dist code, for projects without NPM:

npm run webpack

The project uses ESLint and Prettier to ensure consistent coding standards.

npm run lint
npm run format
npm run package:lint
  • lint will check for errors and fix formatting in .ts and .js files.
  • format will apply format rules to all possible files.
  • package:lint will warn of any inconsistencies in the package.json file.

Keywords

FAQs

Package last updated on 14 Jan 2025

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