
Security Fundamentals
Obfuscation 101: Unmasking the Tricks Behind Malicious Code
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
harvest-api-client
Advanced tools
JavaScript client library for the Harvest API.
npm install harvest-api-client
import Client from 'harvest-api-client'
const client = new Client({
url: 'http://harvest.research.chop.edu/demo/api/'
});
// Call a method on one of the APIs. This returns a promise
// that resolves by passing in the data for that call.
client.categories.all()
.then(function(data) {
data.forEach(function(category) {
console.log(category);
});
})
Initialize the client. If authentication is required supply a token
or username
and password
.
const client = new Client({
token: string?,
username: string?,
password: string?
});
// Fetch all categories.
client.categories.all();
// Fetch all concepts.
client.concepts.all();
// Return all "queryable" concepts.
client.concepts.queryable();
// Return all "viewable" concepts.
client.concepts.viewable();
// Search concepts by keyword.
client.concepts.search({
query: string
});
// Get a concept by id.
client.concepts.get({
id: integer
});
// Fetch all fields.
client.fields.all();
// Fetch all contexts.
client.contexts.all();
// Get a context by id.
client.contexts.get({
id: integer
});
// Fetch all views.
client.views.all();
// Get a view by id.
client.views.get({
id: integer
});
// Fetch all queries.
client.queries.all();
// Fetch all public queries.
client.queries.public();
// Get a query by id.
client.queries.get({
id: integer
});
// Fetch a page of data for the specified context and view.
client.data.preview({
page: integer?,
limit: integer?,
context: object?,
view: object?
});
// Export and download data for a query into the specified format.
client.data.export({
format: string,
context: object?,
view: object?
});
// Fetch all model counts.
client.stats.counts();
FAQs
README.md
The npm package harvest-api-client receives a total of 7 weekly downloads. As such, harvest-api-client popularity was classified as not popular.
We found that harvest-api-client 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 Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Security News
Biome's v2.0 beta introduces custom plugins, domain-specific linting, and type-aware rules while laying groundwork for HTML support and embedded language features in 2025.