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

sic

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sic

Wraps a value in a function.

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

Synopsis

sic is a JavaScript function for wrapping a value in a function (equivalent to the K combinator).

stability 5 - locked license - Unlicense Flattr this

browser support

Build Status Coverage Status Dependencies

Why?

It's trivial to implement, but in order to keep code DRY (and avoid silly mistakes) it makes sense to define this function only once per project. This library is the logical consequence of that.

Install

Node.js

With NPM

npm install sic

From source

git clone https://github.com/pluma/sic.git
cd sic
npm install
make

Browser

With component

component install pluma/sic

Learn more about component.

With bower

bower install sic

Learn more about bower.

With a CommonJS module loader

Download the latest minified CommonJS release and add it to your project.

Learn more about CommonJS modules.

With an AMD module loader

Download the latest minified AMD release and add it to your project.

Learn more about AMD modules.

As a standalone library

Download the latest minified standalone release and add it to your project.

<script src="/your/js/path/sic.globals.min.js"></script>

This makes the sic function available in the global namespace.

Basic usage example

var sic = require('sic');

var fn = sic('hello');

console.log(fn()); // 'hello'

API

sic(value):Function

Wraps the given value in a function.

Unlicense

This is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.

Keywords

self

FAQs

Package last updated on 24 Mar 2014

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