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

ncloud

v1.1.4

Published

NAVER Cloud Platform(https://www.ncloud.com/) Library for Node.js

Downloads

8

Readme

ncloud

GitHub license

NPM

네이버 클라우드 플랫폼 SDK입니다.
현재 최신 API 스펙 (v2)에 맞춰서 개선작업중에 있습니다.
이 저장소는 Ncloud의 Official 저장소가 아닙니다.
문의하실 내용이 있다면, 이슈에 등록해주세요.

NAVER Cloud Platform(https://www.ncloud.com/) Library for Node.js
This project is inspired from pkgcloud.
Currently, this package supports geolocation only. The other functions are unstable.

개인 블로그

https://mosfet1kg.github.io/

Notice

This project welcomes new contributors and invites everyone to participate.
My aim is to build an open community. There are many different ways to get involved:

  • Adding new features, enhancements, tests or fixing bugs
  • Pull request reviews
  • Release management and verification
  • Documentation

People that help with the project in any of the above categories or other ways are contributors.

Installing Dependencies

$ npm install ncloud
or
$ yarn add ncloud

Creating Instance

ES5

var ncloud = require('ncloud');
var client = ncloud.createClient({
        accessKey: "$ACCESS_KEY_ID$",
        secretKey: "$SECRET_KEY$",
});

ES6 or above

import * as ncloud from 'ncloud';

const client = ncloud.createClient({
     accessKey: "$ACCESS_KEY_ID$",
     secretKey: "$SECRET_KEY$",
});

Documentation

Refer to the following link
Npm Ncloud Documentation Link

Release Note

v1.0.1

  • ncloud api gateway spec v2 지원

Usage Example

See following descriptions.

PaaS : Geolocation

action getLocation

Arguments

| Name | Data Type | Required | Description | Default | |------|-----------|----------|----------------------------|---------| | ip | string | required | An IP to find the its location | | | enc | string | optional | Encoding Method (either utf8 or euckr) | utf8 | | ext | string | optional | Flag for additional info (either t or f) | f |

Examples

const geoLocation = client.PaaS.geoLocation();

const geolocationResponse = await geoLocation.geoLocation({
  ip: '143.248.142.77'
});

console.log(geolocationResponse);
//  { returnCode: 0,
//   requestId: 'e03c4779-0740-45dc-9462-9cc0620ea597',
//   geoLocation: { country: 'KR', code: '3020054000', r1: '대전광역시', r2: '유성구' } }
const geoLocation = client.PaaS.geoLocation();

const geolocationResponse = await geoLocation.geoLocation({
  ip: '143.248.142.77',
  ext: 't'
});

console.log(geolocationResponse);
// expected Result =>
// { country: 'KR',
//   code: '3020054000',
//   r1: '대전광역시',
//   r2: '유성구',
//   r3: '구성동',
//   lat: 36.370724,
//   long: 127.3661,
//   net: 'Korea Advanced Institute of Science and Technology' }

Other functions are being prepared.

Others

ncloud supports type definitions. It is readily available in typescript.