
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
put.io-node
Advanced tools
A Node.js wrapper for put.io APIv2 https://api.put.io/v2/docs/
It supports all the methods & functions that put.io's API provides: Files, Transfers, Zips, Friends, Account, Events.
Take a look at the Wiki and put.io's API documentation to get started.
Via NPM
$ npm install put.io-node
Via GIT
$ git clone git@github.com:alormil/put.io-node.git
const Client = require('put.io-node').Client;
// Initialize client with your own app token
const apiClient = new Client('XYZTOKEN');
// Account
// Retrieve Account Info
apiClient.account.getAccountInfo().then((result) => console.log(JSON.parse(result)));
// Friends
// Send Friend Request
apiClient.friends.sendFriendRequest('Bob').then((result) => console.log(JSON.parse(result)));
// Zips
// Create Zip from File list
apiClient.zips.createZip([123,556,989]).then((result) => console.log(JSON.parse(result)));
// Transfers
// Get List of Transfers
apiClient.transfers.getTransfersList().then((result) => console.log(JSON.parse(result)));
// Files
// Create Folder
apiClient.files.createFolder('Folder123', 0).then((result) => console.log(JSON.parse(result)));
// Events
// Get List of Events
apiClient.events.getEventsList().then((result) => console.log(JSON.parse(result)));
All functions return string promises, make sure you convert these strings to JSON objects for future manipulation. I will add examples for each function call in the Wiki, but feel free to have a look at the source code in order to see which functions are available.
$ npm test
If you discover any security related issues, please email me at: alormil@gmail.com.
Pull requests are welcome, take care of maintaining the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using the existing standards.
MIT License
Copyright (c) 2016 Alain Lormil
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.
FAQs
A Node.js wrapper for put.io APIv2 http://put.io
We found that put.io-node 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
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.