# tovar.js

> Lightweight-flexible-supercharged Library for Var assignments

Latest version **0.1.9-rc1** (published 2018-05-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install tovar.js
pnpm add tovar.js
yarn add tovar.js
bun add tovar.js
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.9-rc1 |
| Published | 2018-05-16 |
| First published | 2016-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 121 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 (+50 in 12 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Luigi Mannoni |
| Maintainers | luigimannoni |
| Keywords | var |

## Links

- npm: https://www.npmjs.com/package/tovar.js
- Repository: https://github.com/luigimannoni/tovar.js
- Homepage: https://github.com/luigimannoni/tovar.js#readme
- Issues: https://github.com/luigimannoni/tovar.js/issues
- npm.io page: https://npm.io/package/tovar.js

## Dependencies (121)

- [rx](https://npm.io/package/rx.md) ^4.1.0
- [pmx](https://npm.io/package/pmx.md) ^0.5.9
- [vue](https://npm.io/package/vue.md) ^2.5.16
- [gulp](https://npm.io/package/gulp.md) ^3.9.1
- [jade](https://npm.io/package/jade.md) ^1.11.0
- [less](https://npm.io/package/less.md) ^2.7.3
- [async](https://npm.io/package/async.md) ^1.5.2
- [debug](https://npm.io/package/debug.md) ^2.6.9
- [react](https://npm.io/package/react.md) ^0.14.9
- [redux](https://npm.io/package/redux.md) ^3.7.2
- [store](https://npm.io/package/store.md) git+https://github.com/berkeleytrue/store.js.git#feature/noop-server
- [yargs](https://npm.io/package/yargs.md) ^4.8.1
- [dedent](https://npm.io/package/dedent.md) ^0.6.0
- [dotenv](https://npm.io/package/dotenv.md) ^2.0.0
- [eslint](https://npm.io/package/eslint.md) ^2.2.0
- [fetchr](https://npm.io/package/fetchr.md) ^0.5.37
- [helmet](https://npm.io/package/helmet.md) ^1.3.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [moment](https://npm.io/package/moment.md) ^2.22.1
- [morgan](https://npm.io/package/morgan.md) ^1.9.0
- [accepts](https://npm.io/package/accepts.md) ^1.3.5
- [adler32](https://npm.io/package/adler32.md) ^0.1.7
- [angular](https://npm.io/package/angular.md) ^1.7.0
- [cheerio](https://npm.io/package/cheerio.md) ^0.20.0
- [es6-map](https://npm.io/package/es6-map.md) ^0.1.5
- [express](https://npm.io/package/express.md) ^4.16.3
- [history](https://npm.io/package/history.md) ^2.1.2
- [mongodb](https://npm.io/package/mongodb.md) ^2.2.35
- [request](https://npm.io/package/request.md) ^2.86.0
- [rev-del](https://npm.io/package/rev-del.md) ^1.0.5
- [stampit](https://npm.io/package/stampit.md) ^2.1.2
- [vue-cli](https://npm.io/package/vue-cli.md) ^2.9.3
- [webpack](https://npm.io/package/webpack.md) ^1.15.0
- [gulp-rev](https://npm.io/package/gulp-rev.md) ^7.1.2
- [loopback](https://npm.io/package/loopback.md) ^2.39.2
- [reselect](https://npm.io/package/reselect.md) ^2.5.4
- [babel-cli](https://npm.io/package/babel-cli.md) ^6.26.0
- [bootstrap](https://npm.io/package/bootstrap.md) ^4.1.1
- [gulp-less](https://npm.io/package/gulp-less.md) ^3.5.0
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.8
- [node-uuid](https://npm.io/package/node-uuid.md) ^1.4.8
- [normalizr](https://npm.io/package/normalizr.md) ^2.3.1
- [react-dom](https://npm.io/package/react-dom.md) ^0.14.9
- [sort-keys](https://npm.io/package/sort-keys.md) ^1.1.2
- [ui-router](https://npm.io/package/ui-router.md) ^1.0.0-alpha0
- [url-regex](https://npm.io/package/url-regex.md) ^3.2.0
- [validator](https://npm.io/package/validator.md) ^5.7.0
- [babel-core](https://npm.io/package/babel-core.md) ^6.26.3
- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [frameguard](https://npm.io/package/frameguard.md) ^0.2.2
- [gulp-babel](https://npm.io/package/gulp-babel.md) ^6.1.3
- [helmet-csp](https://npm.io/package/helmet-csp.md) ^1.2.2
- [nodemailer](https://npm.io/package/nodemailer.md) ^2.7.2
- [redux-form](https://npm.io/package/redux-form.md) ^4.2.2
- [vue-router](https://npm.io/package/vue-router.md) ^3.0.1
- [body-parser](https://npm.io/package/body-parser.md) ^1.18.3
- [compression](https://npm.io/package/compression.md) ^1.7.2
- [gulp-concat](https://npm.io/package/gulp-concat.md) ^2.6.1
- [gulp-eslint](https://npm.io/package/gulp-eslint.md) ^2.1.0
- [gulp-notify](https://npm.io/package/gulp-notify.md) ^2.2.0
- [gulp-uglify](https://npm.io/package/gulp-uglify.md) ^1.5.4
- [json-loader](https://npm.io/package/json-loader.md) ^0.5.7
- [react-redux](https://npm.io/package/react-redux.md) ^4.4.9
- [react-vimeo](https://npm.io/package/react-vimeo.md) ^0.1.1
- [thundercats](https://npm.io/package/thundercats.md) ^3.1.0
- [xss-filters](https://npm.io/package/xss-filters.md) ^1.2.7
- [@angular/cli](https://npm.io/package/@angular/cli.md) ^6.0.1
- [babel-eslint](https://npm.io/package/babel-eslint.md) ^5.0.4
- [babel-loader](https://npm.io/package/babel-loader.md) ^6.4.1
- [errorhandler](https://npm.io/package/errorhandler.md) ^1.5.0
- [gulp-nodemon](https://npm.io/package/gulp-nodemon.md) ^2.2.1
- [gulp-plumber](https://npm.io/package/gulp-plumber.md) ^1.2.0
- [merge-stream](https://npm.io/package/merge-stream.md) ^1.0.1
- [react-motion](https://npm.io/package/react-motion.md) ^0.4.8
- [react-router](https://npm.io/package/react-router.md) ^2.8.1
- [react-toastr](https://npm.io/package/react-toastr.md) ^2.9.5
- [vue-resource](https://npm.io/package/vue-resource.md) ^1.5.0
- [@angular/core](https://npm.io/package/@angular/core.md) ^6.0.1
- [bootstrap-vue](https://npm.io/package/bootstrap-vue.md) ^2.0.0-rc.9
- [connect-mongo](https://npm.io/package/connect-mongo.md) ^1.1.0
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.3
- [express-flash](https://npm.io/package/express-flash.md) 0.0.2
- [express-state](https://npm.io/package/express-state.md) ^1.4.0
- [gulp-jsonlint](https://npm.io/package/gulp-jsonlint.md) ^1.2.1
- [loopback-boot](https://npm.io/package/loopback-boot.md) ^2.27.1
- [normalize-url](https://npm.io/package/normalize-url.md) ^1.9.1
- [object.assign](https://npm.io/package/object.assign.md) ^4.1.0
- [redux-actions](https://npm.io/package/redux-actions.md) ^0.9.1
- [sanitize-html](https://npm.io/package/sanitize-html.md) ^1.18.2
- [angular-router](https://npm.io/package/angular-router.md) 0.0.2
- [babel-register](https://npm.io/package/babel-register.md) ^6.26.0
- [passport-local](https://npm.io/package/passport-local.md) ^1.0.0
- [passport-oauth](https://npm.io/package/passport-oauth.md) ^1.0.0
- [webpack-stream](https://npm.io/package/webpack-stream.md) ^3.2.0
- [angular-animate](https://npm.io/package/angular-animate.md) ^1.7.0
- [express-session](https://npm.io/package/express-session.md) ^1.15.6
- [method-override](https://npm.io/package/method-override.md) ^2.3.10
- [moment-timezone](https://npm.io/package/moment-timezone.md) ^0.5.17
- [passport-github](https://npm.io/package/passport-github.md) ^1.1.0
- [react-bootstrap](https://npm.io/package/react-bootstrap.md) ^0.28.5
- [emmet-codemirror](https://npm.io/package/emmet-codemirror.md) ^1.2.5
- [gulp-reduce-file](https://npm.io/package/gulp-reduce-file.md) 0.0.1
- [gulp-rev-replace](https://npm.io/package/gulp-rev-replace.md) ^0.4.4
- [passport-twitter](https://npm.io/package/passport-twitter.md) ^1.0.4
- [angular-translate](https://npm.io/package/angular-translate.md) ^2.17.1
- [express-validator](https://npm.io/package/express-validator.md) ^2.21.0
- [passport-facebook](https://npm.io/package/passport-facebook.md) ^2.1.1
- [react-pure-render](https://npm.io/package/react-pure-render.md) ^1.0.2
- [thundercats-react](https://npm.io/package/thundercats-react.md) ^0.5.1
- [babel-preset-react](https://npm.io/package/babel-preset-react.md) ^6.24.1
- [react-router-redux](https://npm.io/package/react-router-redux.md) ^2.1.0
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.24.1
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^4.3.0
- [babel-preset-stage-0](https://npm.io/package/babel-preset-stage-0.md) ^6.24.1
- [vue-template-compiler](https://npm.io/package/vue-template-compiler.md) ^2.5.16
- [passport-google-oauth2](https://npm.io/package/passport-google-oauth2.md) ^0.1.6
- [react-router-bootstrap](https://npm.io/package/react-router-bootstrap.md) ^0.20.1
- [passport-linkedin-oauth2](https://npm.io/package/passport-linkedin-oauth2.md) ^1.5.0
- [loopback-connector-mongodb](https://npm.io/package/loopback-connector-mongodb.md) ^1.13.0
- [loopback-component-passport](https://npm.io/package/loopback-component-passport.md) ^2.3.0
- [babel-plugin-add-module-exports](https://npm.io/package/babel-plugin-add-module-exports.md) ^0.1.4

## Recent versions

- 0.1.9-rc1 (latest) — 2018-05-16
- 0.0.4-alpha — 2016-03-24
- 0.0.3-alpha — 2016-03-24
- 0.0.2-alpha — 2016-03-24

## README

# Lightweight-flexible-supercharged Library for Var assignments

[![npm version](https://img.shields.io/npm/v/bootstrap.svg)](#)
[![Build Status](https://img.shields.io/travis/twbs/bootstrap/master.svg)](#)

ToVar.js is a sleek, intuitive, and powerful front-end framework for faster and easier web development.
Development files are usually bloated with `var` assignments, this simple library supercharges your web application leveraging variable assignments to a third-party module.

## Quick start
Install it from npm

    $ npm install -g tovar.js

## How to implement
```javascript
toVar = require("tovar");

var myString = toVar('Hello World!');
var myObject = toVar({ value: 'Hello World!' });
var myInteger = toVar(42);

console.log(myString);
	// Returns: "Hello World!"

console.log(myObject);
	// Returns: { value: 'Hello World!' }

console.log(myInteger);
	// Returns: 42
```

## Bugs and feature requests

Have a bug or a feature request? [Please open a new issue](https://github.com/luigimannoni/tovar.js/issues/new).


```





















































```



## No, really. What's the deal with this package?
Probably you've heard about the [packages which broke npm](http://blog.npmjs.org/post/141577284765/kik-left-pad-and-npm) in the last days, this just a mock package to make joke of all those coders who waste 5 minutes of their time looking for a 1 liner code which probably it would take 25 seconds to write.

[A good article from David Haney](http://www.haneycodes.net/npm-left-pad-have-we-forgotten-how-to-program/) pretty much explains what I think about the current state of NPM and it's awful dependencies waterfall for each module. I can't deny how much frustrating is when a NPM dependency build fails because of this or because of that, and lately happens every 3 or 4 builds.

You're free to use this npm package if you really want, but have fun downloading the 50-or-so random declared dependencies inside the package file even if they aren't used (that's another weak point of NPM if I have to say).

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