Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Miew is a high performance web tool for advanced visualization and manipulation of molecular structures.
The miew
package is the core JavaScript library that implements the functionality.
Please refer to the topmost README for an overview of the entire project.
Miew library is available as an npm package. It provides both UMD and ES2015 modules, so can be included in a SCRIPT tag via a CDN or built with a bundler of your choice. For more details refer to:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script>
<script src="https://unpkg.com/three@0.153.0/build/three.min.js"></script>
<script src="https://unpkg.com/miew@0.11.0/dist/Miew.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/miew@0.11.0/dist/Miew.min.css" />
</head>
<body>
<div class="miew-container" style="width:640px; height:480px"></div>
<script>
(function () {
var viewer = new Miew({ load: '1CRN' });
if (viewer.init()) {
viewer.run();
}
})();
</script>
</body>
</html>
Install using npm:
# npm init
# npm i -D webpack webpack-cli style-loader css-loader
npm i miew
src/index.js
import Miew from 'miew';
import './index.css';
window.onload = function () {
var viewer = new Miew({ load: '1CRN' });
if (viewer.init()) {
viewer.run();
}
};
src/index.css
@import 'miew';
dist/index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script src="main.js"></script>
</head>
<body>
<div class="miew-container" style="width:640px; height:480px"></div>
</body>
</html>
webpack.config.js
module.exports = {
module: {
rules: [{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
}],
},
};
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.
Copyright (c) 2015–2024 EPAM Systems, Inc.
FAQs
Miew - 3D Molecular Viewer
The npm package miew receives a total of 4,031 weekly downloads. As such, miew popularity was classified as popular.
We found that miew demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.