Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
JavaScript Client for the CodePicnic's API
To use this library (and the CodePicnic API) you need to sign up in codepicnic.com and purchase a paid plan.
npm install codepicnic
Use the codepicnic.js
file located in the dist
folder.
var CodePicnic = require('codepicnic');
CodePicnic.initialize('CLIENT_ID', 'CLIENT_SECRET');
var newConsole = new CodePicnic.Console({
containerType: 'bash',
title: 'My New Bash Console'
});
newConsole.save().then(function() {
return newConsole.exec('ls -la /');
}).then(function(data) {
console.log('Files listed in /', data['ls -la /']);
});
<script src="codepicnic.js"></script>
<script>
CodePicnic.initialize('CLIENT_ID', 'CLIENT_SECRET');
var newConsole = new CodePicnic.Console({
containerType: 'bash',
title: 'My New Bash Console'
});
newConsole.save().then(function() {
return newConsole.exec('ls -la /');
}).then(function(data) {
console.log('Files listed in /', data['ls -la /']);
});
</script>
CodePicnic.Console
has the following methods:
CodePicnic.Console#save()
(returns a Promise): Create a console with the attributes passed in the initializer (new CodePicnic.Console(attributes)
). Allowed attributes are defined in the API's documentation and the attributes' names must be camelCased. Note: This method creates a new console unless a containerName
is passed.CodePicnic.Console#start()
(returns a Promise): Start the server attached to the console.CodePicnic.Console#stop()
(returns a Promise): Stop the server attached to the console.CodePicnic.Console#restart()
(returns a Promise): Restart the server attached to the console.CodePicnic.Console#exec(command1, command2, ...)
(returns a Promise): Execute commands inside the server attached to the console.CodePicnic.Console.all()
(returns a Promise): Return an array of consoles created by the user.CodePicnic.Console.get(containerName)
(returns a Promise): Return a single instance of CodePicnic.Console
using its container name.Run npm test
superagent
and superagent-use
versions.CodePicnic.Console.uploadFile
and add test case.CodePicnic.Console.get
.isHeadless
field in CodePicnic.Console
.CodePicnic.Console.uploadFile
to upload files to a console.CodePicnic.API_HOST
and CodePicnic.OAUTH_HOST
.CodePicnic.Console#save
.CodePicnic.Console.get
to retrieve a console using its container name.CodePicnic.Console
instance with underscored attributes.MIT License. Copyright 2016 CodePicnic. http://github.com/CodePicnic
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
JavaScript Client for the CodePicnic's API
We found that codepicnic 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.