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.
peopledatalabs
Advanced tools
A tiny, universal JS client for the People Data Labs API.
npm i peopledatalabs
Import peopledatalabs
module in your project and initialize it with your apiKey.
import PDLJS from 'peopledatalabs'
const PDLJSClient = new PDLJS({ apiKey: '%apiKey%' })
// Person APIs
PDLJSClient.person.enrichment({ phone: '4155688415' }).then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
const records = {
requests: [
{
params: {
profile: ['linkedin.com/in/seanthorne']
}
},
{
params: {
profile: ['linkedin.com/in/randrewn']
}
}
]
};
PDLJSClient.person.bulk(records).then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
PDLJSClient.person.search.sql({ searchQuery: "SELECT * FROM person WHERE location_country='mexico' AND job_title_role='health'AND phone_numbers IS NOT NULL;", size: 10 }).then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
PDLJSClient.person.identify({ phone: '4155688415' }).then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
PDLJSClient.person.retrieve('qEnOZ5Oh0poWnQ1luFBfVw_0000').then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
// Company APIs
PDLJSClient.company.enrichment({ website: 'peopledatalabs.com' }).then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
PDLJSClient.company.search.elastic({
searchQuery: {
query: {
bool: {
must: [
{ term: { website: 'peopledatalabs.com' } },
],
},
},
},
size: 10,
}).then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
// Supporting APIs
PDLJSClient.autocomplete({ field: 'skill', text: 'c++', size: 10 }).then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
PDLJSClient.company.cleaner({ name: 'peopledatalabs' }).then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
PDLJSClient.location.cleaner({ location: '455 Market Street, San Francisco, California 94105, US' }).then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
PDLJSClient.school.cleaner({ name: 'university of oregon' }).then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
FAQs
JavaScript client with TypeScript support for the People Data Labs API
The npm package peopledatalabs receives a total of 7,410 weekly downloads. As such, peopledatalabs popularity was classified as popular.
We found that peopledatalabs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.