Socket
Socket
Sign inDemoInstall

as

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

as - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

2

package.json
{ "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 @@ -------

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc