0.1.0 • Published 7 years ago

epm-file v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

EPM File

Read/Write epm's files

File Structure

signaturecontent lengthmetadata

offsetbytesdescription
030x45504d magic number
31Version needed to read the file
44Content Length
8nGzip files
nEOFMetadata

Metadata

base64 encoded metadata(.asymmetric signature optional)

// the metadata structure
{
  // ID único
  uid: String,
  // versionado
  version: Integer,
    
  // tipo de paquete
  type: String,
  // título
  title: String,
  // descripción o ficha técnica
  description: String,
  // observaciones del contenido (visualización)
  remark: String,
  // categorización del contenido
  category: [String],
  // palabras claves
  tags: [String],
  // contenido personalizado
  custom: { /*(Custom content here)*/ },
  // fuente\/s del contenido
  sources: [ 
    { 
      author: String,
      reference: String
    } 
  ],
  // colaboradores/curadores 'Name Lastname <email>'
  collaborators: [String],

  // archivos
  files: [
    {
      entry: String, /*(relative filename)*/
      length: String, /*(the file content length)*/
      comment: String /*(the file comment)*/
    }
  ],

  // fecha de creación
  createdAt: Date,
  //fecha de actualización
  updatedAt: Date
}

License

MIT © DTE