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

return-value

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

return-value

The all on in one npm package for all your input = output needs. This package simply returns whatever you pass into it. Can be used as a stub for a function that should return the values passed into it.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by16.67%
Maintainers
1
Weekly downloads
 
Created
Source

Return Value

The all on in one npm package for all your input = output needs. This package simply returns whatever you pass into it. Can be used as a stub for a function that should return the values passed into it.

We have 100% test coverage. This way we can guarantee that this function behaves exactly as expected.

Installation

npm install return-value

Usage

import { returnValue } from "return-value";

returnValue("hello"); // returns "hello"
returnValue(2); // returns 2
returnValue<number[]>([1, 2, 3, 4]); // returns [1, 2, 3, 4]
returnValue(returnValue); // returns ValueFunction
returnValue<Function>(returnValue); // returns Function
returnValue("💩"); // returns "💩"

FAQs

Package last updated on 27 Jan 2021

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