Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "sassdash", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "The Sass implementation of lodash.", | ||
@@ -5,0 +5,0 @@ "main": "scss/_sassdash.scss", |
@@ -1,3 +0,5 @@ | ||
# Sassdash (beta) | ||
# Sassdash | ||
![Sassdash logo](https://raw.githubusercontent.com/davidkpiano/sassdash/master/sassdash.png) | ||
[![Join the chat at https://gitter.im/davidkpiano/sassdash](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/davidkpiano/sassdash?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
@@ -11,2 +13,4 @@ | ||
Sassdash is a **collection of utility functions**, just like lodash. Sassdash never outputs any CSS declarations as it provides no mixins to do so. | ||
## Getting Started | ||
@@ -64,4 +68,28 @@ This library contains most of the implementable functions from [lodash](http://lodash.com). [See below](#available-functions) to see which functions are included. | ||
## Available Functions | ||
## New Functions | ||
Sassdash includes a number of helper functions not available in lodash, which include utility functions and implementations of native Javascript functions: | ||
* **`char` functions** - `_char-at`, `_char-code`, `_char-code-at` | ||
* **`number` functions** - `_parse-float` (alias `_to-number`) - similar to Javascript `parseFloat` | ||
* **`value` functions** - `_get` and `_set`\* | ||
* **`list` functions** - `_reverse`, `_concat`, and `_splice` | ||
* **`string` functions** - `_str-concat` and `_join` (list to string) | ||
\* **Example:** | ||
```scss | ||
$map: ('foo': ('bar': ('baz': 'quo'))); | ||
$list: (1, ('a': 2), 3); | ||
$baz: _get($map, 'foo' 'bar' 'baz'); // => 'quo' | ||
$something: _get($list, 2 'a'); // => 2 | ||
$map: _set($map, 'foo' 'bar' 'test', 42); | ||
// => ('foo': ('bar': ('baz': 'quo', 'test': 42))) | ||
$list: _set($list, 2 'a', 42); | ||
// => (1, ('a': 42), 3) | ||
``` | ||
## Available lodash Functions | ||
* :x: - Not implemented | ||
@@ -68,0 +96,0 @@ * :clock130: - Coming soon |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
437182
133
341