New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

codellins

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codellins

An Npm Package from Codellins aimed at making frontend development Easy

latest
Source
npmnpm
Version
1.5.2
Version published
Maintainers
1
Created
Source

Installation

codellins supports npm under the name codellins

npm i codellins

The Npm Package Supports ES Modules, allows you to setCookies getCookies removeCookie and many other functionalities

Sure, here's a Markdown documentation template for your codellins npm package:

# codellins NPM Package Documentation

## Introduction

`codellins` is a JavaScript package that provides utility functions for working with cookies and the clipboard in web applications. This package is designed to simplify common tasks related to managing cookies and interacting with the clipboard.

## Installation

To use `codellins` in your project, you can install it using npm or yarn:

```bash
npm install codellins
# or
yarn add codellins
```

Replace 'codellins' with the actual name of your npm package.

Usage

Cookies

Cookies.set(name, value, days)

Sets a cookie with the specified name, value, and optional expiration days.

  • name (string): The name of the cookie.
  • value (string): The value to store in the cookie.
  • days (number, optional): The number of days until the cookie expires. If not provided, the cookie will expire in 100 days by default.

Example:

import codellins from "codellins";

codellins.Cookies.set("myCookie", "cookieValue", 7);

Cookies.get(cookieName)

Retrieves the value of a cookie by its name.

  • cookieName (string): The name of the cookie to retrieve.

Example:

import codellins from "codellins";

const value = codellins.Cookies.get("myCookie");

Cookies.remove(name)

Removes a cookie by its name.

  • name (string): The name of the cookie to remove.

Example:

import codellins from "codellins";

codellins.Cookies.remove("myCookie");

Clipboard

Clipboard.write(text)

Writes the specified text to the clipboard.

  • text (string): The text to copy to the clipboard.

Example:

import codellins from "codellins";

codellins.Clipboard.write("Hello, clipboard!");

Clipboard.read()

Reads text from the clipboard asynchronously.

Example:

import codellins from "codellins";

const readClipboard = async () => {
  const text = await codellins.Clipboard.read();
  console.log("Clipboard content:", text);
};

readClipboard();

License

This package is licensed under the MIT License. See the LICENSE file for details.

Author

Contribution

Contributions Would Be Open Soon Stay Tuned

Issues

If you encounter any issues or have questions about this package, please open an issue on GitHub.

This is the first Version More Features Rolling out Soon

Keywords

clipboard

FAQs

Package last updated on 04 Oct 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