@stoplight/ordered-object-literal

WebJar for @stoplight/ordered-object-literal

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

stoplight__ordered-object-literal
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

@stoplight/ordered-object-literal
WebJar for @stoplight/ordered-object-literal
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/stoplightio/ordered-object-literal

Download stoplight__ordered-object-literal

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/stoplight__ordered-object-literal/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>stoplight__ordered-object-literal</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/stoplight__ordered-object-literal/
implementation 'org.webjars.npm:stoplight__ordered-object-literal:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/stoplight__ordered-object-literal/
implementation ("org.webjars.npm:stoplight__ordered-object-literal:1.0.1")
'org.webjars.npm:stoplight__ordered-object-literal:jar:1.0.1'
<dependency org="org.webjars.npm" name="stoplight__ordered-object-literal" rev="1.0.1">
  <artifact name="stoplight__ordered-object-literal" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='stoplight__ordered-object-literal', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "stoplight__ordered-object-literal" % "1.0.1"
[org.webjars.npm/stoplight__ordered-object-literal "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

@stoplight/ordered-object-literal

Install

Do not use it if you can use maps.

yarn add @stoplight/ordered-object-literal

or if npm is package manager of your choice

npm install @stoplight/ordered-object-literal --save

Usage

I want to create a new object

import box from '@stoplight/ordered-object-literal';

const trackedObj = box({});

I have an existing object

import box from '@stoplight/ordered-object-literal';

const myObj = { 
  a: true,
  b: void 0,
};

const trackedObj = box(myObj);
// alternatively if you want to provide a custom orer
const trackedReversedObj = box(myObj, ['b', 'a']);

LICENSE

Apache License 2.0

org.webjars.npm

Stoplight

Stoplight leverages your OpenAPI documents to drive the entire API development process

Versions

Version
1.0.1