# verisass

> Verify that your sass functions generate the css you expect.

Latest version **0.1.1** (published 2014-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install verisass
pnpm add verisass
yarn add verisass
bun add verisass
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-01-03 |
| First published | 2014-01-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Thorsten Lorenz |
| Maintainers | thlorenz |
| Keywords | scss, sass, css, verify, test, functions, logic |

## Links

- npm: https://www.npmjs.com/package/verisass
- Repository: https://github.com/thlorenz/verisass
- Issues: https://github.com/thlorenz/verisass/issues
- npm.io page: https://npm.io/package/verisass

## Dependencies (3)

- [cuid](https://npm.io/package/cuid.md) ~1.2.1
- [css-parse](https://npm.io/package/css-parse.md) ~1.7.0
- [css-stringify](https://npm.io/package/css-stringify.md) ~1.4.1

## Recent versions

- 0.1.1 (latest) — 2014-01-03
- 0.1.0 — 2014-01-03

## README

# verisass

Verify that your sass functions generate the css you expect.

**ve·ri·tas/wey-ri-tahs/** meaning truth, was the goddess of truth, a daughter of Saturn and the mother of Virtue.

```js
var verisass = require('verisass');

verisass(path.join(fixtures, 'add-fn.scss'))
  .run('x { x: add(1px, 2px)}', function (err, css, lines) {
    console.log('css:', css);
    console.log('lines:', lines);
  });
```

### Output

```css
css: x {
  x: 3px;
}
lines: [ 'x {', '  x: 3px;', '}' ]
```

## Installation

    npm install verisass

## API

<!-- START docme generated API please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN docme TO UPDATE -->

<div>
<div class="jsdoc-githubify">
<section>
<article>
<div class="container-overview">
<dl class="details">
</dl>
</div>
<dl>
<dt>
<h4 class="name" id="verisass"><span class="type-signature"></span>verisass<span class="signature">(scssFile)</span><span class="type-signature"> &rarr; {Object}</span></h4>
</dt>
<dd>
<div class="description">
<p>Creates a verisass instance used to test functins inside the given scss file.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>scssFile</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>full path to the scss file whose functions to test</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy">
<li>
<a href="https://github.com/thlorenz/verisass/blob/master/index.js">index.js</a>
<span>, </span>
<a href="https://github.com/thlorenz/verisass/blob/master/index.js#L8">lineno 8</a>
</li>
</ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>verisass instance</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Object</span>
</dd>
</dl>
</dd>
<dt>
<h4 class="name" id="verisass.run"><span class="type-signature"></span>verisass.run<span class="signature">(scssSrc, cb)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>Uses the functions defined in the given scss file together with the scss source to
compile CSS that can be tested for validity.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>scssSrc</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>scss that causes the sass functions to execute and CSS to be generated</p></td>
</tr>
<tr>
<td class="name"><code>cb</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>called back with the generated CSS or an error</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy">
<li>
<a href="https://github.com/thlorenz/verisass/blob/master/index.js">index.js</a>
<span>, </span>
<a href="https://github.com/thlorenz/verisass/blob/master/index.js#L21">lineno 21</a>
</li>
</ul></dd>
</dl>
</dd>
</dl>
</article>
</section>
</div>

*generated with [docme](https://github.com/thlorenz/docme)*
</div>
<!-- END docme generated API please keep comment here to allow auto update -->

## License

MIT

---
_Source: https://npm.io/package/verisass · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
