TheDesk Riina (ver.2)
This commit is contained in:
1
app/node_modules/match-stream/.idea/.name
generated
vendored
Normal file
1
app/node_modules/match-stream/.idea/.name
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
match-stream
|
5
app/node_modules/match-stream/.idea/encodings.xml
generated
vendored
Normal file
5
app/node_modules/match-stream/.idea/encodings.xml
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
|
||||
</project>
|
||||
|
7
app/node_modules/match-stream/.idea/jsLibraryMappings.xml
generated
vendored
Normal file
7
app/node_modules/match-stream/.idea/jsLibraryMappings.xml
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptLibraryMappings">
|
||||
<file url="PROJECT" libraries="{Node.js v0.9.12 Core Modules}" />
|
||||
</component>
|
||||
</project>
|
||||
|
10
app/node_modules/match-stream/.idea/match-stream.iml
generated
vendored
Normal file
10
app/node_modules/match-stream/.idea/match-stream.iml
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Node.js v0.9.12 Core Modules" level="application" />
|
||||
</component>
|
||||
</module>
|
||||
|
5
app/node_modules/match-stream/.idea/misc.xml
generated
vendored
Normal file
5
app/node_modules/match-stream/.idea/misc.xml
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" />
|
||||
</project>
|
||||
|
9
app/node_modules/match-stream/.idea/modules.xml
generated
vendored
Normal file
9
app/node_modules/match-stream/.idea/modules.xml
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/match-stream.iml" filepath="$PROJECT_DIR$/.idea/match-stream.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
|
5
app/node_modules/match-stream/.idea/scopes/scope_settings.xml
generated
vendored
Normal file
5
app/node_modules/match-stream/.idea/scopes/scope_settings.xml
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<component name="DependencyValidationManager">
|
||||
<state>
|
||||
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
|
||||
</state>
|
||||
</component>
|
8
app/node_modules/match-stream/.idea/vcs.xml
generated
vendored
Normal file
8
app/node_modules/match-stream/.idea/vcs.xml
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="" />
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
|
434
app/node_modules/match-stream/.idea/workspace.xml
generated
vendored
Normal file
434
app/node_modules/match-stream/.idea/workspace.xml
generated
vendored
Normal file
@@ -0,0 +1,434 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="6f2c25bb-86f8-4448-bba5-59bca70aeec8" name="Default" comment="" />
|
||||
<ignored path="match-stream.iws" />
|
||||
<ignored path=".idea/workspace.xml" />
|
||||
<file path="/until.js" changelist="6f2c25bb-86f8-4448-bba5-59bca70aeec8" time="1363328129947" ignored="false" />
|
||||
<file path="/match.js" changelist="6f2c25bb-86f8-4448-bba5-59bca70aeec8" time="1362945907050" ignored="false" />
|
||||
<file path="/Dummy.txt" changelist="6f2c25bb-86f8-4448-bba5-59bca70aeec8" time="1363326769174" ignored="false" />
|
||||
<file path="/_stream_transform.js" changelist="6f2c25bb-86f8-4448-bba5-59bca70aeec8" time="1362890686540" ignored="false" />
|
||||
<file path="/split.js" changelist="6f2c25bb-86f8-4448-bba5-59bca70aeec8" time="1363054598649" ignored="false" />
|
||||
<file path="/README.md" changelist="6f2c25bb-86f8-4448-bba5-59bca70aeec8" time="1363328840341" ignored="false" />
|
||||
<file path="$PROJECT_DIR$/../slice-stream/examples/until.js" changelist="6f2c25bb-86f8-4448-bba5-59bca70aeec8" time="1363328367631" ignored="false" />
|
||||
<file path="$PROJECT_DIR$/../slice-stream/slicestream.js" changelist="6f2c25bb-86f8-4448-bba5-59bca70aeec8" time="1363328367631" ignored="false" />
|
||||
<file path="/slicestream.js" changelist="6f2c25bb-86f8-4448-bba5-59bca70aeec8" time="1363327928400" ignored="false" />
|
||||
<file path="$PROJECT_DIR$/../slice-stream/package.json" changelist="6f2c25bb-86f8-4448-bba5-59bca70aeec8" time="1363328725638" ignored="false" />
|
||||
<file path="$PROJECT_DIR$/../slice-stream/test/until.js" changelist="6f2c25bb-86f8-4448-bba5-59bca70aeec8" time="1363328367631" ignored="false" />
|
||||
<file path="$PROJECT_DIR$/../slice-stream/README.md" changelist="6f2c25bb-86f8-4448-bba5-59bca70aeec8" time="1363328840341" ignored="false" />
|
||||
<option name="TRACKING_ENABLED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
||||
<component name="CreatePatchCommitExecutor">
|
||||
<option name="PATCH_PATH" value="" />
|
||||
</component>
|
||||
<component name="DaemonCodeAnalyzer">
|
||||
<disable_hints />
|
||||
</component>
|
||||
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
||||
<component name="FavoritesManager">
|
||||
<favorites_list name="match-stream" />
|
||||
</component>
|
||||
<component name="FileEditorManager">
|
||||
<leaf>
|
||||
<file leaf-file-name="match.js" pinned="false" current="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/match.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="20" column="20" selection-start="466" selection-end="466" vertical-scroll-proportion="0.0">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="until.js" pinned="false" current="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/test/until.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="5" column="12" selection-start="168" selection-end="168" vertical-scroll-proportion="0.0">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="until.js" pinned="false" current="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/examples/until.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="0" column="0" selection-start="0" selection-end="735" vertical-scroll-proportion="0.0">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="README.md" pinned="false" current="true" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/README.md">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="13" column="23" selection-start="311" selection-end="311" vertical-scroll-proportion="0.25549132">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
</leaf>
|
||||
</component>
|
||||
<component name="FindManager">
|
||||
<FindUsagesManager>
|
||||
<setting name="OPEN_NEW_TAB" value="false" />
|
||||
</FindUsagesManager>
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="GitLogSettings">
|
||||
<option name="myDateState">
|
||||
<MyDateState />
|
||||
</option>
|
||||
</component>
|
||||
<component name="IdeDocumentHistory">
|
||||
<option name="changedFiles">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/node_modules/readable-stream/lib/_stream_transform.js" />
|
||||
<option value="$PROJECT_DIR$/examples/lorem.txt" />
|
||||
<option value="$PROJECT_DIR$/test/until.js" />
|
||||
<option value="$PROJECT_DIR$/match.js" />
|
||||
<option value="$PROJECT_DIR$/examples/until.js" />
|
||||
<option value="$PROJECT_DIR$/test/split.js" />
|
||||
<option value="$PROJECT_DIR$/examples/split.js" />
|
||||
<option value="$PROJECT_DIR$/README.md" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectFrameBounds">
|
||||
<option name="x" value="793" />
|
||||
<option name="y" value="22" />
|
||||
<option name="width" value="1031" />
|
||||
<option name="height" value="1024" />
|
||||
</component>
|
||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
|
||||
<OptionsSetting value="true" id="Add" />
|
||||
<OptionsSetting value="true" id="Remove" />
|
||||
<OptionsSetting value="true" id="Checkout" />
|
||||
<OptionsSetting value="true" id="Update" />
|
||||
<OptionsSetting value="true" id="Status" />
|
||||
<OptionsSetting value="true" id="Edit" />
|
||||
<ConfirmationsSetting value="0" id="Add" />
|
||||
<ConfirmationsSetting value="0" id="Remove" />
|
||||
</component>
|
||||
<component name="ProjectReloadState">
|
||||
<option name="STATE" value="0" />
|
||||
</component>
|
||||
<component name="ProjectView">
|
||||
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
|
||||
<flattenPackages />
|
||||
<showMembers />
|
||||
<showModules />
|
||||
<showLibraryContents ProjectPane="true" />
|
||||
<hideEmptyPackages />
|
||||
<abbreviatePackageNames />
|
||||
<autoscrollToSource />
|
||||
<autoscrollFromSource />
|
||||
<sortByType />
|
||||
</navigator>
|
||||
<panes>
|
||||
<pane id="Scope" />
|
||||
<pane id="ProjectPane">
|
||||
<subPane>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="match-stream" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="match-stream" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="match-stream" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="match-stream" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="match-stream" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="test" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="match-stream" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="match-stream" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="examples" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
</subPane>
|
||||
</pane>
|
||||
</panes>
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="options.splitter.main.proportions" value="0.3" />
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="recentsLimit" value="5" />
|
||||
<property name="options.lastSelected" value="project.propVCSSupport.Mappings" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/../node-unzip" />
|
||||
<property name="options.splitter.details.proportions" value="0.2" />
|
||||
<property name="options.searchVisible" value="true" />
|
||||
</component>
|
||||
<component name="RunManager" selected="JsTestDriver.until.js">
|
||||
<configuration default="false" name="until.js" type="JSTestDriver:ConfigurationType" factoryName="JsTestDriver" temporary="true">
|
||||
<setting name="configLocationType" value="JS_FILE" />
|
||||
<setting name="configType" value="FILE_PATH" />
|
||||
<setting name="settingsFile" value="" />
|
||||
<setting name="jsFile" value="$PROJECT_DIR$/test/until.js" />
|
||||
<setting name="serverType" value="INTERNAL" />
|
||||
<setting name="preferredDebugBrowser" value="CHROME" />
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="DartUnitRunConfigurationType" factoryName="DartUnit">
|
||||
<option name="VMOptions" />
|
||||
<option name="arguments" />
|
||||
<option name="filePath" />
|
||||
<option name="scope" value="ALL" />
|
||||
<option name="testName" />
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="JSTestDriver:ConfigurationType" factoryName="JsTestDriver">
|
||||
<setting name="configLocationType" value="CONFIG_FILE" />
|
||||
<setting name="settingsFile" value="" />
|
||||
<setting name="serverType" value="INTERNAL" />
|
||||
<setting name="preferredDebugBrowser" value="CHROME" />
|
||||
<method />
|
||||
</configuration>
|
||||
<list size="1">
|
||||
<item index="0" class="java.lang.String" itemvalue="JsTestDriver.until.js" />
|
||||
</list>
|
||||
<recent_temporary>
|
||||
<list size="1">
|
||||
<item index="0" class="java.lang.String" itemvalue="JsTestDriver.until.js" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="ShelveChangesManager" show_recycled="false" />
|
||||
<component name="SvnConfiguration" maxAnnotateRevisions="500" myUseAcceleration="nothing" myAutoUpdateAfterCommit="false" cleanupOnStartRun="false" SSL_PROTOCOLS="sslv3">
|
||||
<option name="USER" value="" />
|
||||
<option name="PASSWORD" value="" />
|
||||
<option name="mySSHConnectionTimeout" value="30000" />
|
||||
<option name="mySSHReadTimeout" value="30000" />
|
||||
<option name="LAST_MERGED_REVISION" />
|
||||
<option name="MERGE_DRY_RUN" value="false" />
|
||||
<option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
|
||||
<option name="UPDATE_LOCK_ON_DEMAND" value="false" />
|
||||
<option name="IGNORE_SPACES_IN_MERGE" value="false" />
|
||||
<option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
|
||||
<option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
|
||||
<option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
|
||||
<option name="FORCE_UPDATE" value="false" />
|
||||
<option name="IGNORE_EXTERNALS" value="false" />
|
||||
<myIsUseDefaultProxy>false</myIsUseDefaultProxy>
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="6f2c25bb-86f8-4448-bba5-59bca70aeec8" name="Default" comment="" />
|
||||
<created>1362863989494</created>
|
||||
<updated>1362863989494</updated>
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="793" y="22" width="1031" height="1024" extended-state="0" />
|
||||
<editor active="true" />
|
||||
<layout>
|
||||
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.16468254" sideWeight="0.9933712" order="1" side_tool="false" content_ui="combo" />
|
||||
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32893157" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3289183" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
||||
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
||||
</layout>
|
||||
</component>
|
||||
<component name="VcsContentAnnotationSettings">
|
||||
<option name="myLimit" value="2678400000" />
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
|
||||
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
|
||||
<option name="CHECK_NEW_TODO" value="true" />
|
||||
<option name="myTodoPanelSettings">
|
||||
<value>
|
||||
<are-packages-shown value="false" />
|
||||
<are-modules-shown value="false" />
|
||||
<flatten-packages value="false" />
|
||||
<is-autoscroll-to-source value="false" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
|
||||
<option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
|
||||
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
|
||||
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
|
||||
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
|
||||
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
|
||||
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
|
||||
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
|
||||
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
|
||||
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
|
||||
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
|
||||
<option name="SHORT_DIFF_HORISONTALLY" value="true" />
|
||||
<option name="SHORT_DIFF_EXTRA_LINES" value="2" />
|
||||
<option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
|
||||
<option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
|
||||
<option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
|
||||
<option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
|
||||
<option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
|
||||
<option name="SHOW_DIRTY_RECURSIVELY" value="false" />
|
||||
<option name="LIMIT_HISTORY" value="true" />
|
||||
<option name="MAXIMUM_HISTORY_ROWS" value="1000" />
|
||||
<option name="UPDATE_FILTER_SCOPE_NAME" />
|
||||
<option name="USE_COMMIT_MESSAGE_MARGIN" value="false" />
|
||||
<option name="COMMIT_MESSAGE_MARGIN_SIZE" value="72" />
|
||||
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />
|
||||
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
||||
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
|
||||
<option name="LAST_COMMIT_MESSAGE" />
|
||||
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
|
||||
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
||||
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
||||
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
||||
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
||||
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
||||
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
||||
<option name="ACTIVE_VCS_NAME" />
|
||||
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
||||
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
|
||||
<option name="UPDATE_FILTER_BY_SCOPE" value="false" />
|
||||
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
||||
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
||||
</component>
|
||||
<component name="XDebuggerManager">
|
||||
<breakpoint-manager />
|
||||
</component>
|
||||
<component name="editorHistoryManager">
|
||||
<entry file="file://$USER_HOME$/Library/Caches/WebStorm6/extLibs/nodejs-v0.9.12-src/core-modules-sources/lib/_stream_readable.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="527" column="34" selection-start="15379" selection-end="15384" vertical-scroll-proportion="0.0" />
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$USER_HOME$/Library/Caches/WebStorm6/extLibs/nodejs-v0.9.12-src/core-modules-sources/lib/_stream_transform.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="148" column="32" selection-start="5526" selection-end="5526" vertical-scroll-proportion="0.0" />
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/node_modules/readable-stream/lib/_stream_transform.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="156" column="0" selection-start="5865" selection-end="5865" vertical-scroll-proportion="-10.423077" />
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/../until-stream/test/pipeUntil.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="4" column="0" selection-start="114" selection-end="155" vertical-scroll-proportion="0.0" />
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="jar://$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/lib/JavascriptLanguage.jar!/com/intellij/lang/javascript/index/predefined/EcmaScript5.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="157" column="19" selection-start="2889" selection-end="2889" vertical-scroll-proportion="0.3997722" />
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/../until-stream/until.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="122" column="36" selection-start="3395" selection-end="3427" vertical-scroll-proportion="1.3678815" />
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/node_modules/stream-buffers/README.md">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="70" column="13" selection-start="3170" selection-end="3179" vertical-scroll-proportion="0.4857143" />
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/node_modules/readable-stream/lib/_stream_readable.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="534" column="13" selection-start="15634" selection-end="15638" vertical-scroll-proportion="0.83463037" />
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/examples/lorem.txt">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="0" column="22" selection-start="0" selection-end="612" vertical-scroll-proportion="0.0" />
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/test/split.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="63" column="3" selection-start="2573" selection-end="2573" vertical-scroll-proportion="0.0">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/examples/until.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="0" column="0" selection-start="0" selection-end="735" vertical-scroll-proportion="0.0">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/examples/split.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="16" column="15" selection-start="396" selection-end="396" vertical-scroll-proportion="0.26459143">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/match.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="20" column="20" selection-start="466" selection-end="466" vertical-scroll-proportion="0.0">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/test/until.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="5" column="12" selection-start="168" selection-end="168" vertical-scroll-proportion="0.0">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/package.json">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="3" column="31" selection-start="81" selection-end="81" vertical-scroll-proportion="-1.9615384">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/README.md">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="13" column="23" selection-start="311" selection-end="311" vertical-scroll-proportion="0.25549132">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</component>
|
||||
</project>
|
||||
|
5
app/node_modules/match-stream/.travis.yml
generated
vendored
Normal file
5
app/node_modules/match-stream/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "0.10"
|
||||
- "0.8"
|
||||
|
22
app/node_modules/match-stream/LICENSE
generated
vendored
Normal file
22
app/node_modules/match-stream/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
Copyright (c) 2013 Evan Oxfeld
|
||||
|
||||
MIT License
|
||||
|
||||
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.
|
75
app/node_modules/match-stream/README.md
generated
vendored
Normal file
75
app/node_modules/match-stream/README.md
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
match-stream [](https://travis-ci.org/EvanOxfeld/match-stream)
|
||||
============
|
||||
|
||||
Supply a function to handle pattern matches within a NodeJS stream.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
$ npm install match-stream
|
||||
```
|
||||
|
||||
## Quick Examples
|
||||
|
||||
### End stream on match
|
||||
|
||||
```javascript
|
||||
var MatchStream = require('match-stream');
|
||||
var streamBuffers = require("stream-buffers");
|
||||
|
||||
var ms = new MatchStream({ pattern: 'World'}, function (buf, matched, extra) {
|
||||
if (!matched) {
|
||||
return this.push(buf);
|
||||
}
|
||||
this.push(buf);
|
||||
return this.push(null); //signal end of data
|
||||
});
|
||||
|
||||
var sourceStream = new streamBuffers.ReadableStreamBuffer();
|
||||
sourceStream.put("Hello World");
|
||||
var writableStream = new streamBuffers.WritableStreamBuffer();
|
||||
|
||||
sourceStream
|
||||
.pipe(ms)
|
||||
.pipe(writableStream)
|
||||
.once('close', function () {
|
||||
var str = writableStream.getContentsAsString('utf8');
|
||||
console.log('Piped data before pattern occurs:', "'" + str + "'");
|
||||
sourceStream.destroy();
|
||||
});
|
||||
|
||||
//Output
|
||||
//Piped data before pattern occurs: 'Hello '
|
||||
```
|
||||
|
||||
### Split stream
|
||||
|
||||
```javascript
|
||||
var MatchStream = require('match-stream');
|
||||
var fs = require('fs');
|
||||
|
||||
var line = "";
|
||||
var loremLines = [];
|
||||
var ms = new MatchStream({ pattern: '.', consume: true}, function (buf, matched, extra) {
|
||||
line += buf.toString();
|
||||
if (matched) {
|
||||
loremLines.push(line.trim());
|
||||
line = "";
|
||||
}
|
||||
});
|
||||
|
||||
fs.createReadStream('lorem.txt')
|
||||
.pipe(ms)
|
||||
.once('finish', function() {
|
||||
console.log(loremLines);
|
||||
});
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
Special thanks to @wanderview for assisting with the API.
|
||||
|
1
app/node_modules/match-stream/examples/lorem.txt
generated
vendored
Normal file
1
app/node_modules/match-stream/examples/lorem.txt
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas varius tempor arcu, quis hendrerit nunc accumsan quis. In ut dolor metus, eget viverra odio. Quisque sed suscipit leo. Curabitur dictum magna ut turpis interdum a mollis nunc condimentum. Praesent leo est, hendreriteget condimentum sit amet, placerat adipiscing neque. Curabitur id metus tellus, sed semper odio. Phasellus id justo ante, vel bibendum eros. Nulla suscipit felis eget erat iaculis et aliquam turpis consequat. Nunc posuere mollis tellus sit amet dapibus. Praesent sagittis quam sit amet mauris venenatis in dignissim purus dapibus.
|
32
app/node_modules/match-stream/examples/split.js
generated
vendored
Normal file
32
app/node_modules/match-stream/examples/split.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
var MatchStream = require('../');
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
|
||||
var line = "";
|
||||
var loremLines = [];
|
||||
var ms = new MatchStream({ pattern: '.', consume: true}, function (buf, matched, extra) {
|
||||
line += buf.toString();
|
||||
if (matched) {
|
||||
loremLines.push(line.trim());
|
||||
line = "";
|
||||
}
|
||||
});
|
||||
|
||||
fs.createReadStream(path.join(__dirname, 'lorem.txt'))
|
||||
.pipe(ms)
|
||||
.once('finish', function() {
|
||||
console.log(loremLines);
|
||||
});
|
||||
|
||||
//Output
|
||||
//[ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
|
||||
// 'Maecenas varius tempor arcu, quis hendrerit nunc accumsan quis',
|
||||
// 'In ut dolor metus, eget viverra odio',
|
||||
// 'Quisque sed suscipit leo',
|
||||
// 'Curabitur dictum magna ut turpis interdum a mollis nunc condimentum',
|
||||
// 'Praesent leo est, hendreriteget condimentum sit amet, placerat adipiscing neque',
|
||||
// 'Curabitur id metus tellus, sed semper odio',
|
||||
// 'Phasellus id justo ante, vel bibendum eros',
|
||||
// 'Nulla suscipit felis eget erat iaculis et aliquam turpis consequat',
|
||||
// 'Nunc posuere mollis tellus sit amet dapibus',
|
||||
// 'Praesent sagittis quam sit amet mauris venenatis in dignissim purus dapibus' ]
|
26
app/node_modules/match-stream/examples/until.js
generated
vendored
Normal file
26
app/node_modules/match-stream/examples/until.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
var MatchStream = require('../');
|
||||
var streamBuffers = require("stream-buffers");
|
||||
|
||||
var ms = new MatchStream({ pattern: 'World'}, function (buf, matched, extra) {
|
||||
if (!matched) {
|
||||
return this.push(buf);
|
||||
}
|
||||
this.push(buf);
|
||||
return this.push(null); //signal end of data
|
||||
});
|
||||
|
||||
var sourceStream = new streamBuffers.ReadableStreamBuffer();
|
||||
sourceStream.put("Hello World");
|
||||
var writableStream = new streamBuffers.WritableStreamBuffer();
|
||||
|
||||
sourceStream
|
||||
.pipe(ms)
|
||||
.pipe(writableStream)
|
||||
.once('close', function () {
|
||||
var str = writableStream.getContentsAsString('utf8');
|
||||
console.log('Piped data before pattern occurs:', "'" + str + "'");
|
||||
sourceStream.destroy();
|
||||
});
|
||||
|
||||
//Output
|
||||
//Piped data before pattern occurs: 'Hello '
|
60
app/node_modules/match-stream/match.js
generated
vendored
Normal file
60
app/node_modules/match-stream/match.js
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = Match;
|
||||
|
||||
var Transform = require('stream').Transform;
|
||||
var inherits = require("util").inherits;
|
||||
var Buffers = require('buffers');
|
||||
|
||||
if (!Transform) {
|
||||
Transform = require('readable-stream/transform');
|
||||
}
|
||||
|
||||
inherits(Match, Transform);
|
||||
|
||||
function Match(opts, matchFn) {
|
||||
if (!(this instanceof Match)) {
|
||||
return new Match(opts, matchFn);
|
||||
}
|
||||
|
||||
//todo - better handle opts e.g. pattern.length can't be > highWaterMark
|
||||
this._opts = opts;
|
||||
if (typeof this._opts.pattern === "string") {
|
||||
this._opts.pattern = new Buffer(this._opts.pattern);
|
||||
}
|
||||
this._matchFn = matchFn;
|
||||
this._bufs = Buffers();
|
||||
|
||||
Transform.call(this);
|
||||
}
|
||||
|
||||
Match.prototype._transform = function (chunk, encoding, callback) {
|
||||
var pattern = this._opts.pattern;
|
||||
this._bufs.push(chunk);
|
||||
|
||||
var index = this._bufs.indexOf(pattern);
|
||||
if (index >= 0) {
|
||||
processMatches.call(this, index, pattern, callback);
|
||||
} else {
|
||||
var buf = this._bufs.splice(0, this._bufs.length - chunk.length);
|
||||
if (buf && buf.length > 0) {
|
||||
this._matchFn(buf.toBuffer());
|
||||
}
|
||||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
function processMatches(index, pattern, callback) {
|
||||
var buf = this._bufs.splice(0, index).toBuffer();
|
||||
if (this._opts.consume) {
|
||||
this._bufs.splice(0, pattern.length);
|
||||
}
|
||||
this._matchFn(buf, pattern, this._bufs.toBuffer());
|
||||
|
||||
index = this._bufs.indexOf(pattern);
|
||||
if (index > 0 || this._opts.consume && index === 0) {
|
||||
process.nextTick(processMatches.bind(this, index, pattern, callback));
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
}
|
94
app/node_modules/match-stream/package.json
generated
vendored
Normal file
94
app/node_modules/match-stream/package.json
generated
vendored
Normal file
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "match-stream@>= 0.0.2 < 1",
|
||||
"scope": null,
|
||||
"escapedName": "match-stream",
|
||||
"name": "match-stream",
|
||||
"rawSpec": ">= 0.0.2 < 1",
|
||||
"spec": ">=0.0.2 <1.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"C:\\Users\\ryuki\\TheDesk\\app\\node_modules\\unzip"
|
||||
]
|
||||
],
|
||||
"_from": "match-stream@>=0.0.2 <1.0.0",
|
||||
"_id": "match-stream@0.0.2",
|
||||
"_inCache": true,
|
||||
"_location": "/match-stream",
|
||||
"_npmUser": {
|
||||
"name": "evanoxfeld",
|
||||
"email": "eoxfeld@gmail.com"
|
||||
},
|
||||
"_npmVersion": "1.2.17",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "match-stream@>= 0.0.2 < 1",
|
||||
"scope": null,
|
||||
"escapedName": "match-stream",
|
||||
"name": "match-stream",
|
||||
"rawSpec": ">= 0.0.2 < 1",
|
||||
"spec": ">=0.0.2 <1.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/unzip"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/match-stream/-/match-stream-0.0.2.tgz",
|
||||
"_shasum": "99eb050093b34dffade421b9ac0b410a9cfa17cf",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "match-stream@>= 0.0.2 < 1",
|
||||
"_where": "C:\\Users\\ryuki\\TheDesk\\app\\node_modules\\unzip",
|
||||
"author": {
|
||||
"name": "Evan Oxfeld",
|
||||
"email": "eoxfeld@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/EvanOxfeld/match-stream/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"buffers": "~0.1.1",
|
||||
"readable-stream": "~1.0.0"
|
||||
},
|
||||
"description": "Match a pattern within a stream",
|
||||
"devDependencies": {
|
||||
"stream-buffers": "~0.2.4",
|
||||
"tap": "~0.4.0"
|
||||
},
|
||||
"directories": {
|
||||
"example": "examples",
|
||||
"test": "test"
|
||||
},
|
||||
"dist": {
|
||||
"shasum": "99eb050093b34dffade421b9ac0b410a9cfa17cf",
|
||||
"tarball": "https://registry.npmjs.org/match-stream/-/match-stream-0.0.2.tgz"
|
||||
},
|
||||
"gitHead": "665dabbb0a3593310012eb041fc07395db632a20",
|
||||
"homepage": "https://github.com/EvanOxfeld/match-stream#readme",
|
||||
"keywords": [
|
||||
"match",
|
||||
"stream",
|
||||
"split"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "match.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "evanoxfeld",
|
||||
"email": "eoxfeld@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "match-stream",
|
||||
"optionalDependencies": {},
|
||||
"readme": "match-stream [](https://travis-ci.org/EvanOxfeld/match-stream)\n============\n\nSupply a function to handle pattern matches within a NodeJS stream.\n\n## Installation\n\n```bash\n$ npm install match-stream\n```\n\n## Quick Examples\n\n### End stream on match\n\n```javascript\nvar MatchStream = require('match-stream');\nvar streamBuffers = require(\"stream-buffers\");\n\nvar ms = new MatchStream({ pattern: 'World'}, function (buf, matched, extra) {\n if (!matched) {\n return this.push(buf);\n }\n this.push(buf);\n return this.push(null); //signal end of data\n});\n\nvar sourceStream = new streamBuffers.ReadableStreamBuffer();\nsourceStream.put(\"Hello World\");\nvar writableStream = new streamBuffers.WritableStreamBuffer();\n\nsourceStream\n .pipe(ms)\n .pipe(writableStream)\n .once('close', function () {\n var str = writableStream.getContentsAsString('utf8');\n console.log('Piped data before pattern occurs:', \"'\" + str + \"'\");\n sourceStream.destroy();\n });\n\n//Output\n//Piped data before pattern occurs: 'Hello '\n```\n\n### Split stream\n\n```javascript\nvar MatchStream = require('match-stream');\nvar fs = require('fs');\n\nvar line = \"\";\nvar loremLines = [];\nvar ms = new MatchStream({ pattern: '.', consume: true}, function (buf, matched, extra) {\n line += buf.toString();\n if (matched) {\n loremLines.push(line.trim());\n line = \"\";\n }\n});\n\nfs.createReadStream('lorem.txt')\n .pipe(ms)\n .once('finish', function() {\n console.log(loremLines);\n });\n```\n\n## License\n\nMIT\n\n## Acknowledgements\n\nSpecial thanks to @wanderview for assisting with the API.\n\n",
|
||||
"readmeFilename": "README.md",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/EvanOxfeld/match-stream.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "./node_modules/.bin/tap ./test/*.js"
|
||||
},
|
||||
"version": "0.0.2"
|
||||
}
|
64
app/node_modules/match-stream/test/split.js
generated
vendored
Normal file
64
app/node_modules/match-stream/test/split.js
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
var test = require('tap').test;
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var streamBuffers = require("stream-buffers");
|
||||
var MatchStream = require('../');
|
||||
|
||||
var expected = [ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
|
||||
'Maecenas varius tempor arcu, quis hendrerit nunc accumsan quis',
|
||||
'In ut dolor metus, eget viverra odio',
|
||||
'Quisque sed suscipit leo',
|
||||
'Curabitur dictum magna ut turpis interdum a mollis nunc condimentum',
|
||||
'Praesent leo est, hendreriteget condimentum sit amet, placerat adipiscing neque',
|
||||
'Curabitur id metus tellus, sed semper odio',
|
||||
'Phasellus id justo ante, vel bibendum eros',
|
||||
'Nulla suscipit felis eget erat iaculis et aliquam turpis consequat',
|
||||
'Nunc posuere mollis tellus sit amet dapibus',
|
||||
'Praesent sagittis quam sit amet mauris venenatis in dignissim purus dapibus' ];
|
||||
|
||||
test("multiple matches within a single _transform() chunk", function (t) {
|
||||
t.plan(1);
|
||||
|
||||
var line = "";
|
||||
var loremLines = [];
|
||||
var ms = new MatchStream({ pattern: '.', consume: true}, function (buf, matched, extra) {
|
||||
line += buf.toString();
|
||||
if (matched) {
|
||||
loremLines.push(line.trim());
|
||||
line = "";
|
||||
}
|
||||
});
|
||||
|
||||
fs.createReadStream(path.join(__dirname, '../examples/lorem.txt'))
|
||||
.pipe(ms)
|
||||
.on('finish', function() {
|
||||
t.deepEqual(loremLines, expected);
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
test("multiple chunks passed to _transform()", function (t) {
|
||||
t.plan(1);
|
||||
|
||||
var line = "";
|
||||
var loremLines = [];
|
||||
var ms = new MatchStream({ pattern: '.', consume: true}, function (buf, matched, extra) {
|
||||
line += buf.toString();
|
||||
if (matched) {
|
||||
loremLines.push(line.trim());
|
||||
line = "";
|
||||
}
|
||||
});
|
||||
|
||||
var lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas varius tempor arcu, quis hendrerit nunc accumsan quis. In ut dolor metus, eget viverra odio. Quisque sed suscipit leo. Curabitur dictum magna ut turpis interdum a mollis nunc condimentum. Praesent leo est, hendreriteget condimentum sit amet, placerat adipiscing neque. Curabitur id metus tellus, sed semper odio. Phasellus id justo ante, vel bibendum eros. Nulla suscipit felis eget erat iaculis et aliquam turpis consequat. Nunc posuere mollis tellus sit amet dapibus. Praesent sagittis quam sit amet mauris venenatis in dignissim purus dapibus.";
|
||||
var sourceStream = new streamBuffers.ReadableStreamBuffer({ chunkSize: 10});
|
||||
sourceStream.put(lorem);
|
||||
|
||||
sourceStream
|
||||
.pipe(ms)
|
||||
.on('finish', function() {
|
||||
sourceStream.destroy();
|
||||
t.deepEqual(loremLines, expected);
|
||||
t.end();
|
||||
});
|
||||
});
|
30
app/node_modules/match-stream/test/until.js
generated
vendored
Normal file
30
app/node_modules/match-stream/test/until.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
var test = require('tap').test;
|
||||
var streamBuffers = require("stream-buffers");
|
||||
var MatchStream = require('../');
|
||||
|
||||
test("pipe until pattern", function (t) {
|
||||
t.plan(2);
|
||||
|
||||
var ms = new MatchStream({ pattern: 'World'}, function (buf, matched, extra) {
|
||||
if (!matched) {
|
||||
return this.push(buf);
|
||||
}
|
||||
this.push(buf);
|
||||
t.equal(extra.toString(), 'World');
|
||||
return this.push(null); //end the stream
|
||||
});
|
||||
|
||||
var sourceStream = new streamBuffers.ReadableStreamBuffer();
|
||||
sourceStream.put("Hello World");
|
||||
var writableStream = new streamBuffers.WritableStreamBuffer();
|
||||
|
||||
sourceStream
|
||||
.pipe(ms)
|
||||
.pipe(writableStream)
|
||||
.once('close', function () {
|
||||
var str = writableStream.getContentsAsString('utf8');
|
||||
t.equal(str, 'Hello ');
|
||||
sourceStream.destroy();
|
||||
t.end();
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user