descriptor

WebJar for descriptor

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

descriptor
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

descriptor
WebJar for descriptor
Project URL

Project URL

http://webjars.org

Download descriptor

How to add to project

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

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.

Descriptor

Generate property descriptor maps

Getting Started

Install the module with: npm install descriptor

var Descriptor = require("descriptor");

Examples

var Descriptor = require("descriptor");

// `new` is optional
new Descriptor( "foo" );

{ // defaults to `true`
  writable: true,
  configurable: true,
  enumerable: true,
  value: 'foo'
}

new Descriptor( "foo", "!enumerable" );

{
  writable: true,
  configurable: true,
  enumerable: false,
  value: "foo"
}

var data = "";

new Descriptor({
  get: function() {
    return data;
  },
  set: function( value ) {
    data = value;
  }
});

{
  configurable: true,
  enumerable: true,
  set: [Function],
  get: [Function]
}

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

(Nothing yet)

License

Copyright (c) 2012 Rick Waldron Licensed under the MIT license.

Versions

Version
0.1.0