forked from enviPath/enviPy
Current Dev State
This commit is contained in:
21
static/js/ketcher2/node_modules/from2-string/LICENSE
generated
vendored
Normal file
21
static/js/ketcher2/node_modules/from2-string/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
44
static/js/ketcher2/node_modules/from2-string/README.md
generated
vendored
Normal file
44
static/js/ketcher2/node_modules/from2-string/README.md
generated
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
# from2-string
|
||||
[![NPM version][npm-image]][npm-url]
|
||||
[![build status][travis-image]][travis-url]
|
||||
[![Test coverage][coveralls-image]][coveralls-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
[![js-standard-style][standard-image]][standard-url]
|
||||
|
||||
Create a stream from a string. Sugary wrapper around
|
||||
[from2](https://github.com/hughsk/from2).
|
||||
|
||||
## Installation
|
||||
```bash
|
||||
$ npm install from2-string
|
||||
```
|
||||
|
||||
## Usage
|
||||
```js
|
||||
const fromString = require('from2-string')
|
||||
|
||||
fromString('hello world').pipe(process.stdout)
|
||||
```
|
||||
|
||||
## Why
|
||||
In order to use `from2` with strings, you must write some boilerplate to
|
||||
break the string in correctly sized chunks. This module handles that
|
||||
boilerplate for you, so you can directly source from a string.
|
||||
|
||||
## See Also
|
||||
- [from2](https://github.com/hughsk/from2) - Convenience wrapper for ReadableStream, with an API lifted from "from" and "through2"
|
||||
- [from2-array](https://github.com/binocarlos/from2-array) - Create a from2 stream based on an array of source values
|
||||
|
||||
## License
|
||||
[MIT](https://tldrlegal.com/license/mit-license)
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/from2-string.svg?style=flat-square
|
||||
[npm-url]: https://npmjs.org/package/from2-string
|
||||
[travis-image]: https://img.shields.io/travis/yoshuawuyts/from2-string.svg?style=flat-square
|
||||
[travis-url]: https://travis-ci.org/yoshuawuyts/from2-string
|
||||
[coveralls-image]: https://img.shields.io/coveralls/yoshuawuyts/from2-string.svg?style=flat-square
|
||||
[coveralls-url]: https://coveralls.io/r/yoshuawuyts/from2-string?branch=master
|
||||
[downloads-image]: http://img.shields.io/npm/dm/from2-string.svg?style=flat-square
|
||||
[downloads-url]: https://npmjs.org/package/from2-string
|
||||
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
|
||||
[standard-url]: https://github.com/feross/standard
|
||||
19
static/js/ketcher2/node_modules/from2-string/index.js
generated
vendored
Normal file
19
static/js/ketcher2/node_modules/from2-string/index.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
const assert = require('assert')
|
||||
const from = require('from2')
|
||||
|
||||
module.exports = fromString
|
||||
|
||||
// create a stream from a string
|
||||
// str -> stream
|
||||
function fromString (string) {
|
||||
assert.equal(typeof string, 'string')
|
||||
|
||||
return from(function (size, next) {
|
||||
if (string.length <= 0) return this.push(null)
|
||||
|
||||
const chunk = string.slice(0, size)
|
||||
string = string.slice(size)
|
||||
|
||||
next(null, chunk)
|
||||
})
|
||||
}
|
||||
68
static/js/ketcher2/node_modules/from2-string/package.json
generated
vendored
Normal file
68
static/js/ketcher2/node_modules/from2-string/package.json
generated
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"_from": "from2-string@^1.1.0",
|
||||
"_id": "from2-string@1.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-GCgrJ9CKJnyzAwzSuLSw8hKvdSo=",
|
||||
"_location": "/from2-string",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "from2-string@^1.1.0",
|
||||
"name": "from2-string",
|
||||
"escapedName": "from2-string",
|
||||
"rawSpec": "^1.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/simple-html-index"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/from2-string/-/from2-string-1.1.0.tgz",
|
||||
"_shasum": "18282b27d08a267cb3030cd2b8b4b0f212af752a",
|
||||
"_spec": "from2-string@^1.1.0",
|
||||
"_where": "/home/manfred/enviPath/ketcher2/ketcher/node_modules/simple-html-index",
|
||||
"bugs": {
|
||||
"url": "https://github.com/yoshuawuyts/from2-string/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"from2": "^2.0.3"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Create a stream from a string. Sugary wrapper around from2",
|
||||
"devDependencies": {
|
||||
"concat-stream": "^1.4.8",
|
||||
"covert": "^1.0.1",
|
||||
"standard": "^4.5.2",
|
||||
"tape": "^4.0.0"
|
||||
},
|
||||
"files": [
|
||||
"LICENSE",
|
||||
"index.js",
|
||||
"README.md"
|
||||
],
|
||||
"homepage": "https://github.com/yoshuawuyts/from2-string#readme",
|
||||
"keywords": [
|
||||
"stream",
|
||||
"string",
|
||||
"from",
|
||||
"source",
|
||||
"from2",
|
||||
"stream2",
|
||||
"streams2"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "from2-string",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/yoshuawuyts/from2-string.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "standard && NODE_ENV=test node test",
|
||||
"test-cov": "standard && NODE_ENV=test covert test",
|
||||
"test-cov-ci": "NODE_ENV=test covert -q --json test 2>&1"
|
||||
},
|
||||
"version": "1.1.0"
|
||||
}
|
||||
Reference in New Issue
Block a user