Comparing version 0.4.0 to 0.4.1
{ "name": "as" | ||
, "version": "0.4.0" | ||
, "version": "0.4.1" | ||
, "description": "as/array and as/object. Convert easily, back and forth." | ||
@@ -4,0 +4,0 @@ , "license": "MIT" |
@@ -25,3 +25,3 @@ [![Build status](https://img.shields.io/travis/tomekwi/as.js/master.svg?style=flat-square)](https://travis-ci.org/tomekwi/as.js) | ||
```sh | ||
> npm install as | ||
$ npm install as | ||
``` | ||
@@ -36,11 +36,32 @@ | ||
```js | ||
var asArray = require("as/array"); | ||
var asObject = require("as/object"); | ||
var asArray = require("as/array"); | ||
``` | ||
// Examples will soon flood in here | ||
### as/array | ||
```js | ||
asArray( | ||
{a: 1, b: 2} | ||
); | ||
// [ {key: "a", value: 1} | ||
// , {key: "b", value: 2} | ||
// ] | ||
``` | ||
### as/object | ||
```js | ||
asObject( | ||
[ {key: "a", value: 1} | ||
, {key: "b", value: 2} | ||
]); | ||
// {a: 1, b: 2} | ||
``` | ||
License | ||
@@ -47,0 +68,0 @@ ------- |
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
26568
73