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.
flexus-net
Advanced tools
This is (for now) just a simple wrapper module that makes lifes easier when installing Node.js net
module with JSPM for usage in browser-like app enviroments. Namely in Chrome packages apps and Windows modern apps.
Chrome provides quirky and overly complex chrome.sockets.tcp
API for TCP socket communication which is wrapped by wonderful module chrome-net
to provide the same API as Node.js net
.
And flexus-net
basically just wraps chrome-net
with intention to implement similar wrapper for Windows API in the future.
jspm install npm:flexus-net
You can rename the module from flexus-net
to net
in your JSPM config file and then use it simply as
import net from 'net';
or
var net = require('net');
Sweet. Now how to do it?
In JSPM config file there is property map
with names and mappings of all modules. This is an example of JSPM 0.17 jspm.config.js
map: {
"flexus-net": "npm:flexus-net@1.1.0",
"events": "github:jspm/nodelibs-events@0.2.0-alpha",
"process": "github:jspm/nodelibs-process@0.2.0-alpha",
...
where you change the name like so
map: {
"net": "npm:flexus-net@1.1.0",
...
Now you can write your app with net
module like you would in Node and JSPM handles picking the right module for given enviroment. When runnig in Chrome App the chrome-net
is used in background or when run in Node using JSPM run path_to_your.js
the native module is used.
Feross Aboukhadijeh, John Hiesey & Jan Schä for creating chrome-net
and Guy Bedford for JSPM
FAQs
Deprecated, to be deleted
The npm package flexus-net receives a total of 2 weekly downloads. As such, flexus-net popularity was classified as not popular.
We found that flexus-net demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.