This repository has been archived by the owner on Mar 7, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"name":"sic","tagline":"wraps a value in a function","body":"# Synopsis\r\n\r\n**sic** is a JavaScript function for wrapping a value in a function.\r\n\r\n[![browser support](https://ci.testling.com/pluma/sic.png)](https://ci.testling.com/pluma/sic)\r\n\r\n[![Build Status](https://travis-ci.org/pluma/sic.png?branch=master)](https://travis-ci.org/pluma/sic) [![NPM version](https://badge.fury.io/js/sic.png)](http://badge.fury.io/js/sic) [![Dependencies](https://david-dm.org/pluma/sic.png)](https://david-dm.org/pluma/sic)\r\n\r\n# Why?\r\n\r\nIt'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.\r\n\r\n# Install\r\n\r\n## Node.js\r\n\r\n### With NPM\r\n\r\n```sh\r\nnpm install sic\r\n```\r\n\r\n### From source\r\n\r\n```sh\r\ngit clone https://github.com/pluma/sic.git\r\ncd sic\r\nnpm install\r\nmake\r\n```\r\n\r\n## Browser\r\n\r\n### With component\r\n\r\n```sh\r\ncomponent install pluma/sic\r\n```\r\n\r\n[Learn more about component](https://github.com/component/component).\r\n\r\n### With bower\r\n\r\n```sh\r\nbower install sic\r\n```\r\n\r\n[Learn more about bower](https://github.com/twitter/bower).\r\n\r\n### With a CommonJS module loader\r\n\r\nDownload the [latest minified CommonJS release](https://raw.github.com/pluma/sic/master/dist/sic.min.js) and add it to your project.\r\n\r\n[Learn more about CommonJS modules](http://wiki.commonjs.org/wiki/Modules/1.1).\r\n\r\n### With an AMD module loader\r\n\r\nDownload the [latest minified AMD release](https://raw.github.com/pluma/sic/master/dist/sic.amd.min.js) and add it to your project.\r\n\r\n[Learn more about AMD modules](http://requirejs.org/docs/whyamd.html).\r\n\r\n### As a standalone library\r\n\r\nDownload the [latest minified standalone release](https://raw.github.com/pluma/sic/master/dist/sic.globals.min.js) and add it to your project.\r\n\r\n```html\r\n<script src=\"/your/js/path/sic.globals.min.js\"></script>\r\n```\r\n\r\nThis makes the `sic` function available in the global namespace.\r\n\r\n# Basic usage example\r\n\r\n```javascript\r\nvar sic = require('sic');\r\n\r\nvar fn = sic('hello');\r\n\r\nconsole.log(fn()); // 'hello'\r\n```\r\n\r\n# API\r\n\r\n## sic(value):Function\r\n\r\nWraps the given value in a function.\r\n\r\n# Unlicense\r\n\r\nThis is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying [UNLICENSE](https://github.com/pluma/sic/blob/master/UNLICENSE) file.","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} | ||
{"name":"sic","tagline":"wraps a value in a function","body":"# Synopsis\r\n\r\n**sic** is a JavaScript function for wrapping a value in a function.\r\n\r\n[![stability 5 - locked](http://b.repl.ca/v1/stability-5_--_locked-blue.png)\r\n](http://nodejs.org/api/documentation.html#documentation_stability_index) [![license - Unlicense](http://b.repl.ca/v1/license-Unlicense-lightgrey.png)](http://unlicense.org/)\r\n\r\n[![browser support](https://ci.testling.com/pluma/sic.png)](https://ci.testling.com/pluma/sic)\r\n\r\n[![Build Status](https://travis-ci.org/pluma/sic.png?branch=master)](https://travis-ci.org/pluma/sic) [![Coverage Status](https://coveralls.io/repos/pluma/sic/badge.png?branch=master)](https://coveralls.io/r/pluma/sic?branch=master) [![Dependencies](https://david-dm.org/pluma/sic.png?theme=shields.io)](https://david-dm.org/pluma/sic)\r\n\r\n# Why?\r\n\r\nIt'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.\r\n\r\n# Install\r\n\r\n## Node.js\r\n\r\n### With NPM\r\n\r\n```sh\r\nnpm install sic\r\n```\r\n\r\n### From source\r\n\r\n```sh\r\ngit clone https://github.com/pluma/sic.git\r\ncd sic\r\nnpm install\r\nmake\r\n```\r\n\r\n## Browser\r\n\r\n### With component\r\n\r\n```sh\r\ncomponent install pluma/sic\r\n```\r\n\r\n[Learn more about component](https://github.com/component/component).\r\n\r\n### With bower\r\n\r\n```sh\r\nbower install sic\r\n```\r\n\r\n[Learn more about bower](https://github.com/twitter/bower).\r\n\r\n### With a CommonJS module loader\r\n\r\nDownload the [latest minified CommonJS release](https://raw.github.com/pluma/sic/master/dist/sic.min.js) and add it to your project.\r\n\r\n[Learn more about CommonJS modules](http://wiki.commonjs.org/wiki/Modules/1.1).\r\n\r\n### With an AMD module loader\r\n\r\nDownload the [latest minified AMD release](https://raw.github.com/pluma/sic/master/dist/sic.amd.min.js) and add it to your project.\r\n\r\n[Learn more about AMD modules](http://requirejs.org/docs/whyamd.html).\r\n\r\n### As a standalone library\r\n\r\nDownload the [latest minified standalone release](https://raw.github.com/pluma/sic/master/dist/sic.globals.min.js) and add it to your project.\r\n\r\n```html\r\n<script src=\"/your/js/path/sic.globals.min.js\"></script>\r\n```\r\n\r\nThis makes the `sic` function available in the global namespace.\r\n\r\n# Basic usage example\r\n\r\n```javascript\r\nvar sic = require('sic');\r\n\r\nvar fn = sic('hello');\r\n\r\nconsole.log(fn()); // 'hello'\r\n```\r\n\r\n# API\r\n\r\n## sic(value):Function\r\n\r\nWraps the given value in a function.\r\n\r\n# Unlicense\r\n\r\nThis is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying [UNLICENSE](https://github.com/pluma/sic/blob/master/UNLICENSE) file.","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} |