1.0.0 • Published 5 years ago

tdnet.xbrl.filename-to-object v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

tdnet.xbrl.filename-to-object

tdnetのxbrlファイルネームを解析します。

Install

$ npm install tdnet.xbrl.filename-to-object

Usage

  const fileNameToObject = require('tdnet.xbrl.filename-to-object')
  const _p = '/path/to/xbrl/081220190322494016/XBRLData/Attachment/0300000-acbs01-tse-acedjpfr-81250-2019-02-28-01-2019-04-05-ixbrl.htm'
  fileNameToObject(_p)
  /* ->{
    type: 'rvdf',
    period: null,
    consolidate: null,
    code: '87930',
    dates: '20190417405942',
    xid: '091220190417405942',
    directory: 'xbrl',
    iPath: '/path/to/xbrl/091220190417405942/tse-rvdf-87930-20190417405942-ixbrl.htm'
  }
  */

API

fileNameToObject(iXbrlFilePath)

iXbrlFilePath

Type: string

ixbrl.htmファイルのパス。決算短信の場合はパスに'Summary'が含まれているものに限る。

Related

License

MIT © Mick Whats