You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text="""Another solution is to run Node directly with the `--max-old-space-size` option. The following example (Mac or Linux) allocates 16GB of memory:
With Node installed, you can install the latest release version of mapshaper using npm. Install with the "-g" flag to make the executable scripts available systemwide.
88
-
89
-
```bash
90
-
npm install -g mapshaper
91
-
```
92
-
93
-
To install and run the latest development code from github:
94
-
95
-
```bash
96
-
git clone git@github.com:mbloch/mapshaper.git
97
-
cd mapshaper
98
-
npm install # install dependencies
99
-
npm run build # bundle source code files
100
-
npm link # (optional) add global symlinks so scripts are available systemwide
101
-
```
102
-
103
-
## Building and testing
104
-
105
-
From the project directory, run `npm run build` to build both the cli and web UI modules.
106
-
107
-
Run `npm test` to run mapshaper's tests.
108
-
109
-
## License
110
-
111
-
This software is licensed under [MPL 2.0](http://www.mozilla.org/MPL/2.0/).
112
-
113
-
According to Mozilla's [FAQ](http://www.mozilla.org/MPL/2.0/FAQ.html), "The MPL's ‘file-level’ copyleft is designed to encourage contributors to share modifications they make to your code, while still allowing them to combine your code with code under other licenses (open or proprietary) with minimal restrictions."" \
With Node installed, you can install the latest release version of mapshaper using npm. Install with the "-g" flag to make the executable scripts available systemwide.
90
+
91
+
```bash
92
+
npm install -g mapshaper
93
+
```
94
+
95
+
To install and run the latest development code from github:
96
+
97
+
```bash
98
+
git clone git@github.com:mbloch/mapshaper.git
99
+
cd mapshaper
100
+
npm install # install dependencies
101
+
npm run build # bundle source code files
102
+
npm link # (optional) add global symlinks so scripts are available systemwide
103
+
```
104
+
105
+
## Building and testing
106
+
107
+
From the project directory, run `npm run build` to build both the cli and web UI modules.
108
+
109
+
Run `npm test` to run mapshaper's tests.
110
+
111
+
## License
112
+
113
+
This software is licensed under [MPL 2.0](http://www.mozilla.org/MPL/2.0/).
114
+
115
+
According to Mozilla's [FAQ](http://www.mozilla.org/MPL/2.0/FAQ.html), "The MPL's ‘file-level’ copyleft is designed to encourage contributors to share modifications they make to your code, while still allowing them to combine your code with code under other licenses (open or proprietary) with minimal restrictions."" \
116
+
"""
115
117
output=extract_bash_code(text)
116
118
assertlen(output) ==3
117
119
118
120
deftest_issue_232(self):
119
121
withopen("pyansys-README.rst", "r") asdata_file:
120
122
file_text=data_file.read()
121
123
results=extract_header_content(file_text)
122
-
# At least 5 categories are extracted from the header analysis
123
124
print(results)
124
125
assertlen(results) ==8
125
126
withopen("rasterio-README.md", "r") asdata_file:
126
127
file_text=data_file.read()
127
128
results=extract_header_content(file_text)
128
-
# At least 5 categories are extracted from the header analysis
0 commit comments