npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

leboncoin-api-wrapper

v1.1.4

Published

Leboncoin API wrapper goal is to make it easy to use the Leboncoin's API. (Still a WIP)

Downloads

4

Readme

Leboncoin API wrapper codecov CircleCI

Leboncoin API wrapper goal is to make it easy to use the Leboncoin's API. (Still a WIP)

Installation

npm i leboncoin-api-wrapper

Features

  • Search on Leboncoin.
  • Get users phone number if available.

Code Example

const lbc = require('leboncoin-api-wrapper');

const finder = new lbc.Finder();
finder.setKeywords('Evangelion'); // We set the keywords that we want to search
finder.setCategory('livres'); // Setting the category, you can find the full on Leboncoin.fr
finder.setOrder('desc'); // desc or asc
finder.setPage(1);
finder.setLimit(10); // Limit per page

(async () => {
  const resp = await finder.search();
})();

Documentation

setKeywords('evangelion')
Parameter: string
Define the keywords you want to search

setPage(1)
Parameter: integer
Define the page number

setOrder('desc')
Parameter: string
Define the ads order desc or asc

setLimit(15)
Parameter: integer
Define the number of ads per page

setCategory('livres')
Parameter: string
Define the category, you can find a full list here

setMinPrice(15)
Parameter: integer
Define the minimal price

setMaxPrice(15)
Parameter: integer
Define the maximal price

setLocations([{'city': 'Montreuil','zipcode': '93100'}])
Parameter: array
Define the cities, you can add as many as you want

setMinRooms(2)
Parameter: integer
Define the minimum number of rooms (for real estate)

setMaxRooms(2)
Parameter: integer
Define the maximum number of rooms (for real estate)

setMinSquare(15)
Parameter: integer
Define the minimal size in square meter

setMaxSquare(15)
Parameter: integer
Define the maximal size in square meter

setEstateType(['maison'])
Parameter: array
Define the kind of real estate you are looking for, full list here

setFurnished(true)
Parameter: boolean
Define if the real estate is furnished or not (for locations` category)

setSellType(['old'])
Parameter: array
Define the real estate type, old new or viager (for ventes immobilieres category)`

search()
Run the search and will returns corresponding ads with phone numbers if possible.