forked from enviPath/enviPy
Current Dev State
This commit is contained in:
49
static/js/ketcher2/node_modules/accessory/readme.md
generated
vendored
Normal file
49
static/js/ketcher2/node_modules/accessory/readme.md
generated
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
# accessory [](https://travis-ci.org/bendrucker/accessory)
|
||||
|
||||
> Create property accessor/caller statements for dot paths
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save accessory
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var accessory = require('accessory')
|
||||
|
||||
accessory('window', 'foo.bar')
|
||||
//=> window['foo']['bar']
|
||||
|
||||
accessory('window', 'foo\\.bar')
|
||||
//=> window['foo.bar']
|
||||
|
||||
accessory('window', 'foo.bar(baz)')
|
||||
//=> window['foo']['bar'](baz)
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
#### `accessory(source, path)` -> `string`
|
||||
|
||||
##### source
|
||||
|
||||
*Required*
|
||||
Type: `string`
|
||||
|
||||
The source identifier which will prepend the accessors.
|
||||
|
||||
##### path
|
||||
|
||||
*Required*
|
||||
Type: `string`
|
||||
|
||||
A dot property path, including function calls.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Ben Drucker](http://bendrucker.me)
|
||||
Reference in New Issue
Block a user