Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

digitalocean-js

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

digitalocean-js - npm Package Compare versions

Comparing version 0.2.3 to 0.3.0

.vscode/launch.json

7

.vscode/settings.json
{
"eslint.enable": false
}
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": true
// "typescript.implementationsCodeLens.enabled": true
// "typescript.referencesCodeLens.enabled": true
}
{
"name": "digitalocean-js",
"version": "0.2.3",
"description": "JavaScript library for the DigitalOcean API",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"author": {
"name": "John Woodruff",
"email": "johnwoodruff91@gmail.com"
"version": "0.3.0",
"description": "JavaScript library for the DigitalOcean API.",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
"module": "build/module/index.js",
"repository": "https://github.com/jbw91/digitalocean-js",
"license": "MIT",
"keywords": [
"digitalocean",
"api",
"droplet",
"droplets",
"client",
"typescript"
],
"scripts": {
"info": "npm-scripts-info",
"build": "run-s clean && run-p build:*",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
"fix": "run-s fix:*",
"fix:prettier": "prettier \"src/**/*.ts\" --write",
"fix:tslint": "tslint --fix --project .",
"test": "run-s build test:*",
"test:lint": "tslint --project . && prettier \"src/**/*.ts\" --list-different",
"test:unit": "nyc --silent ava",
"test:nsp": "nsp check",
"watch": "run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"",
"cov": "run-s build test:unit cov:html && opn coverage/index.html",
"cov:html": "nyc report --reporter=html",
"cov:send": "nyc report --reporter=lcov > coverage.lcov && codecov",
"cov:check": "nyc report && nyc check-coverage --lines 0 --functions 0 --branches 0",
"doc": "run-s doc:html && opn build/docs/index.html",
"doc:html": "typedoc src/ --target ES6 --mode file --out build/docs",
"doc:json": "typedoc src/ --target ES6 --mode file --json build/docs/typedoc.json",
"doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs",
"version": "standard-version",
"reset": "git clean -dfx && git reset --hard && yarn install",
"clean": "trash build test",
"all": "run-s reset test cov:check doc:html",
"prepare-release": "run-s all version doc:publish",
"preinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('digitalocean-js must be installed with Yarn: https://yarnpkg.com/')\""
},
"repository": {
"type": "git",
"url": "https://github.com/jbw91/digitalocean-js"
"scripts-info": {
"info": "Display information about the package scripts",
"build": "Clean and rebuild the project",
"fix": "Try to automatically fix any linting problems",
"test": "Lint and unit test the project",
"watch": "Watch and rebuild the project on save, then rerun relevant tests",
"cov": "Rebuild, run tests, then create and open the coverage report",
"doc": "Generate HTML API documentation and open it in a browser",
"doc:json": "Generate API documentation in typedoc JSON format",
"changelog": "Bump package.json version, update CHANGELOG.md, tag release",
"reset": "Delete all untracked files and reset the repo to the last commit",
"prepare-release": "One-step: clean, build, test, publish docs, and prep a release"
},
"scripts": {
"start": "tsc -w",
"build": "npm run lint && tsc",
"lint": "tslint -p tsconfig.json --type-check -t stylish"
"engines": {
"node": ">=8.9"
},
"license": "MIT",
"dependencies": {
"axios": "^0.18.0",
"sha.js": "^2.4.10"
},
"devDependencies": {
"tslint": "^5.7.0",
"typescript": "^2.4.2"
"ava": "^1.0.0-beta.3",
"codecov": "^3.0.0",
"cz-conventional-changelog": "^2.1.0",
"gh-pages": "^1.0.0",
"npm-run-all": "^4.1.2",
"npm-scripts-info": "^0.3.6",
"nsp": "^3.2.1",
"nyc": "^11.5.0",
"opn-cli": "^3.1.0",
"prettier": "^1.10.2",
"standard-version": "^4.0.0",
"trash-cli": "^1.4.0",
"tslint": "^5.4.3",
"tslint-config-prettier": "^1.8.0",
"tslint-immutable": "^4.5.1",
"typedoc": "^0.11.1",
"typescript": "^2.4.1"
},
"dependencies": {
"axios": "^0.16.2"
"ava": {
"failFast": true,
"files": [
"build/main/**/*.spec.js"
],
"sources": [
"build/main/**/*.js"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"greenkeeper": {
"ignore": [
"@types/node"
]
},
"prettier": {
"singleQuote": true
},
"nyc": {
"exclude": [
"**/*.spec.js"
]
}
}
# DigitalOcean JS
JavaScript library for the DigitalOcean API.
[![Build Status](https://travis-ci.org/jbw91/digitalocean-js.svg?branch=master)](https://travis-ci.org/jbw91/digitalocean-js)
## UNDER CONSTRUCTION
JavaScript library for the DigitalOcean API. For use in Node or the browser.
This library is still very early and very much under construction. Nothing is guaranteed to work and no documentation will be provided until the initial release.
## Usage
To use the library, install from the npm repository.
```shell
$ npm install --save digitalocean-js
# Alternatively install with yarn
$ yarn add digitalocean-js
```
Simply import the client and initialize it with your API token:
```js
import { DigitalOcean } from 'digitalocean-js';
const client = new DigitalOcean('my-api-token');
```
To see all the services available, check out the [documentation](http://johnbwoodruff.com/digitalocean-js/).
## Un-Implemented Services
There are a few unavailable aspects of the API currently. They are:
* Floating IPs
* Floating IP Actions
* Firewalls
* Images
* Image Actions
* Load Balancers
* Snapshots
* SSH Keys
* Tags
If a service you need is unavailable, feel free to contribute a pull request!

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc