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

opendart

v1.0.2

Published

Javascript opendart API package, Support Node.js

Downloads

8

Readme

opendart API for javascript

Javascript opendart API package, Support Node.js

Installation

npm install --save opendart

Getting Started

with Node.js

const opendart = require('opendart')

Authentication

accessToken

opendart API

  • accessToken: opendart API key

opendart.disclosure.company(access_token: string, options: object = {})

호출 예 )

const opendart = require('opendart');

var options = {
    'corp_code' : '00126380'
}
opendart.disclosure.company('ACCESS_TOKEN', options).then(function (res){
    console.log(res.data);
});

Details

  • https://opendart.fss.or.kr/guide/main.do?apiGrpCd=DS001
  • https://documenter.getpostman.com/view/12899159/TVKJxEeP

전체 API

const opendart = {
  disclosure: {
    /** 공시검색 API */
    list (accessToken, options = {}) {
      return Request.get(accessToken, '/list.json', options)
    },
    /** 기업개황 API */
    company (accessToken, options = {}) {
      return Request.get(accessToken, '/company.json', options)
    },
    /** 고유번호 API */
    corpCode (accessToken, options = {}) {
      return Request.get(accessToken, '/corpCode.xml', options)
    },
    /** 고유번호 API */
    document (accessToken, options = {}) {
      return Request.get(accessToken, '/document.xml', options)
    }
  },
  report: {
    /** 증자(감자) 현황 API */
    irdsSttus(accessToken, options = {}) {
      return Request.get(accessToken, '/irdsSttus.json', options)
    },
    /** 배당에 관한 사항 API */
    alotMatter(accessToken, options = {}) {
      return Request.get(accessToken, '/alotMatter.json', options)
    },
    /** 자기주식 취득 및 처분 현황 API */
    tesstkAcqsDspsSttus(accessToken, options = {}) {
      return Request.get(accessToken, '/tesstkAcqsDspsSttus.json', options)
    },
    /** 최대주주 현황 API */
    hyslrSttus(accessToken, options = {}) {
      return Request.get(accessToken, '/hyslrSttus.json', options)
    },
    /** 최대주주 변동 현황 API */
    hyslrChgSttus(accessToken, options = {}) {
      return Request.get(accessToken, '/hyslrChgSttus.json', options)
    },
    /** 소액주주 현황 API */
    mrhlSttus(accessToken, options = {}) {
      return Request.get(accessToken, '/mrhlSttus.json', options)
    },
    /** 임원 현황 API */
    exctvSttus(accessToken, options = {}) {
      return Request.get(accessToken, '/exctvSttus.json', options)
    },
    /** 직원 현황 API */
    empSttus(accessToken, options = {}) {
      return Request.get(accessToken, '/empSttus.json', options)
    },
    /** 이사,감사의 개인별 보수 현황 API */
    hmvAuditIndvdlBySttus(accessToken, options = {}) {
      return Request.get(accessToken, '/hmvAuditIndvdlBySttus.json', options)
    },
    /** 이사, 감사 전체의 보수 현황 API */
    hmvAuditAllSttus(accessToken, options = {}) {
      return Request.get(accessToken, '/hmvAuditAllSttus.json', options)
    },
    /** 개인별 보수금액(5억이상 상위5인) API */
    indvdlByPay(accessToken, options = {}) {
      return Request.get(accessToken, '/indvdlByPay.json', options)
    },
    /** 타법인 출자현황 API */
    otrCprInvstmntSttus(accessToken, options = {}) {
      return Request.get(accessToken, '/otrCprInvstmntSttus.json', options)
    }
  },
  statement: {
    /** 단일회사 주요계정 API */
    fnlttSinglAcnt(accessToken, options = {}) {
      return Request.get(accessToken, '/fnlttSinglAcnt.json', options)
    },
    /** 다중회사 주요계정 API */
    fnlttMultiAcnt(accessToken, options = {}) {
      return Request.get(accessToken, '/fnlttMultiAcnt.json', options)
    },
    /** 단일회사 전체 재무제표 API */
    fnlttSinglAcntAll(accessToken, options = {}) {
      return Request.get(accessToken, '/fnlttSinglAcntAll.json', options)
    },
    /** XBRL택사노미재무제표양식 API */
    xbrlTaxonomy(accessToken, options = {}) {
      return Request.get(accessToken, '/xbrlTaxonomy.json', options)
    },
    /** 재무제표 원본파일(XBRL) API */
    fnlttXbrl(accessToken, options = {}) {
      return Request.get(accessToken, '/fnlttXbrl.xml', options)
    }
  },
  equity: {
    /** 대량보유 상황보고 API */
    majorstock(accessToken, options = {}) {
      return Request.get(accessToken, '/majorstock.json', options)
    },
    /** 임원ㆍ주요주주 소유보고 API */
    elestock(accessToken, options = {}) {
      return Request.get(accessToken, '/elestock.json', options)
    }
  }
}

License

MIT

Copyright 2018-2020. hkjang. All rights reserved.